Merge pull request #11009 from netchampfaris/fix-blog-md-content

fix: Markdown content in Blog Post
This commit is contained in:
mergify[bot] 2020-07-16 16:29:16 +00:00 committed by GitHub
commit 23a2f52e89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ import frappe
from six import iteritems
from past.builtins import cmp
from frappe.utils import markdown
from frappe.utils import md_to_html
def delete_page_cache(path):
@ -357,7 +357,7 @@ def get_html_content_based_on_type(doc, fieldname, content_type):
content = doc.get(fieldname)
if content_type == 'Markdown':
content = markdown(doc.get(fieldname + '_md'))
content = md_to_html(doc.get(fieldname + '_md'))
elif content_type == 'HTML':
content = doc.get(fieldname + '_html')