diff --git a/app/utils.py b/app/utils.py index 2cee9834..e0199917 100644 --- a/app/utils.py +++ b/app/utils.py @@ -310,7 +310,7 @@ def allowlist_html(html: str, a_target='_blank') -> str: # this is for pyfedi's version of Markdown (differs from lemmy for: newlines for soft breaks, ...) def markdown_to_html(markdown_text, anchors_new_tab=True) -> str: if markdown_text: - raw_html = markdown2.markdown(markdown_text, safe_mode=True, + raw_html = markdown2.markdown(markdown_text, extras={'middle-word-em': False, 'tables': True, 'fenced-code-blocks': True, 'strike': True, 'breaks': {'on_newline': True, 'on_backslash': True}}) return allowlist_html(raw_html, a_target='_blank' if anchors_new_tab else '') else: