fix: dont convert from md if html
This commit is contained in:
parent
c8aed039bd
commit
f3ccdd9ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -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("<!-- markdown -->", "")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue