mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 12:39:23 +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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue