Fixed error 500 when rendering markdown

This commit is contained in:
Eliot Berriot 2020-02-17 09:51:33 +01:00
parent 575b6819c7
commit fa801f9ea7
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
2 changed files with 2 additions and 1 deletions

View File

@ -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"])

View File

@ -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):