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("", "")