Skip to content
Snippets Groups Projects
Verified Commit fa801f9e authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed error 500 when rendering markdown

parent 575b6819
No related branches found
No related tags found
No related merge requests found
Pipeline #9656 passed with stages
in 20 minutes and 26 seconds
......@@ -959,3 +959,4 @@ USE_FULL_TEXT_SEARCH = env.bool("USE_FULL_TEXT_SEARCH", default=True)
MIN_DELAY_BETWEEN_DOWNLOADS_COUNT = env.int(
"MIN_DELAY_BETWEEN_DOWNLOADS_COUNT", default=60 * 60 * 6
)
MARKDOWN_EXTENSIONS = env.list("MARKDOWN_EXTENSIONS", default=["nl2br", "extra"])
......@@ -249,7 +249,7 @@ def join_queries_or(left, right):
return right
MARKDOWN_RENDERER = markdown.Markdown(extensions=["nl2br", "extra"])
MARKDOWN_RENDERER = markdown.Markdown(extensions=settings.MARKDOWN_EXTENSIONS)
def render_markdown(text):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment