mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:49:16 +02:00
Fixed error 500 when rendering markdown
This commit is contained in:
parent
6d1e3f370a
commit
575b6819c7
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue