Verified Commit 575b6819 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed error 500 when rendering markdown

parent 6d1e3f37
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment