Skip to content

Commit

Permalink
(settings) add code-friendly extra package to markdown2 to prevent un…
Browse files Browse the repository at this point in the history
…derscore being converted into <em> in urls
  • Loading branch information
vincentporte committed Apr 3, 2024
1 parent 785f874 commit 7f7410c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@
# WIDGETS
# ---------------------------------------
MACHINA_MARKUP_WIDGET = "lacommunaute.forum_conversation.widgets.MarkdownTextareaWidget"
MACHINA_MARKUP_LANGUAGE = (
"machina.core.markdown.markdown",
{"safe_mode": True, "extras": {"break-on-newline": True, "code-friendly": True, "nofollow": True}},
)

# Django sites framework
SITE_ID = 1
Expand Down

0 comments on commit 7f7410c

Please sign in to comment.