From f3ccdd9ebcd94d9a01437ab7184ff96dc8549aeb Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Wed, 20 May 2020 13:18:19 +0530 Subject: [PATCH] fix: dont convert from md if html --- frappe/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/utils/__init__.py b/frappe/utils/__init__.py index 956846d50c..f2e2319802 100644 --- a/frappe/utils/__init__.py +++ b/frappe/utils/__init__.py @@ -481,7 +481,7 @@ def watch(path, handler=None, debug=True): observer.join() def markdown(text, sanitize=True, linkify=True): - html = frappe.utils.md_to_html(text) + html = text if is_html(text) else frappe.utils.md_to_html(text) if sanitize: html = html.replace("", "")