mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
markdown: Fix performance probelm loading /help/.
Apparently, we were running the markdown processor a second time on the HTML output of the configured markdown processor. Fixes #2735.
This commit is contained in:
@@ -74,5 +74,5 @@ def render_markdown_path(markdown_file_path):
|
|||||||
md_engine.reset()
|
md_engine.reset()
|
||||||
|
|
||||||
markdown_string = force_text(open(markdown_file_path).read())
|
markdown_string = force_text(open(markdown_file_path).read())
|
||||||
html = markdown.markdown(md_engine.convert(markdown_string))
|
html = md_engine.convert(markdown_string)
|
||||||
return mark_safe(html)
|
return mark_safe(html)
|
||||||
|
|||||||
Reference in New Issue
Block a user