From 097d37d7e0d7dafc4424a4cb8ed26bfac9c86c35 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:19:34 +1300 Subject: [PATCH] markdown: Parse ~~strikethrough~~ formatting --- app/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils.py b/app/utils.py index 4fbcd545..bb775f67 100644 --- a/app/utils.py +++ b/app/utils.py @@ -251,7 +251,7 @@ def html_to_markdown_worker(element, indent_level=0): def markdown_to_html(markdown_text) -> str: if markdown_text: - return allowlist_html(markdown2.markdown(markdown_text, safe_mode=True, extras={'middle-word-em': False, 'tables': True, 'fenced-code-blocks': True, 'spoiler': True})) + return allowlist_html(markdown2.markdown(markdown_text, safe_mode=True, extras={'middle-word-em': False, 'tables': True, 'fenced-code-blocks': True, 'strike': True})) else: return ''