Merge pull request #11009 from netchampfaris/fix-blog-md-content
fix: Markdown content in Blog Post
This commit is contained in:
commit
23a2f52e89
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue