Use frappe.utils.md_to_html instead of manual import (#15087)

This commit is contained in:
Faris Ansari
2018-08-07 11:53:36 +05:30
committed by Nabin Hait
parent 2cadb1e12e
commit 796ca56f85
4 changed files with 4 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ def pre_process(issue):
project = frappe.db.get_value('Project', filters={'project_name': issue.milestone})
return {
'title': issue.title,
'body': frappe.utils.to_html(issue.body or ''),
'body': frappe.utils.md_to_html(issue.body or ''),
'state': issue.state.title(),
'project': project or ''
}