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:
Tim Abbott
2016-12-15 21:40:26 -08:00
parent 9d6e1030de
commit ab8cd37bd8

View File

@@ -74,5 +74,5 @@ def render_markdown_path(markdown_file_path):
md_engine.reset()
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)