From 03a22bd53727862b3480895f0d174fe85b6cac13 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Tue, 23 Mar 2021 04:20:54 +0000 Subject: [PATCH] Switched to using `frappe.utils.md_to_html` for rendering markdown. The `markdown` filter doesn't convert to html if there is any html tag in the input. --- community/www/courses/topic.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/community/www/courses/topic.html b/community/www/courses/topic.html index 205bbeee..e7008baa 100644 --- a/community/www/courses/topic.html +++ b/community/www/courses/topic.html @@ -51,7 +51,9 @@ {% endmacro %} {% macro render_section_text(s) %} - {{ s.contents | markdown }} +

BEGIN SECTION

+ {{ frappe.utils.md_to_html(s.contents) }} +

END SECTION

{% endmacro %} {%- block script %}