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

Fixed error 500 when rendering markdown

parent 6d1e3f37
No related branches found
No related tags found
No related merge requests found
......@@ -249,8 +249,11 @@ def join_queries_or(left, right):
return right
MARKDOWN_RENDERER = markdown.Markdown(extensions=["nl2br", "extra"])
def render_markdown(text):
return markdown.markdown(text, extensions=["nl2br", "extra"])
return MARKDOWN_RENDERER.convert(text)
SAFE_TAGS = [
......
......@@ -76,5 +76,5 @@ django-cacheops==4.2
click>=7,<8
service_identity==18.1.0
markdown>=3,<4
markdown>=3.2,<4
bleach>=3,<4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment