From ab8cd37bd87bff9fd42a0017484649a9d636f4d5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 15 Dec 2016 21:40:26 -0800 Subject: [PATCH] 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. --- zerver/templatetags/app_filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/templatetags/app_filters.py b/zerver/templatetags/app_filters.py index 576b392fa0..6811a54d52 100644 --- a/zerver/templatetags/app_filters.py +++ b/zerver/templatetags/app_filters.py @@ -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)