erpnext_utils/u_utils/jinja.py
2022-08-30 14:53:14 +02:00

6 lines
160 B
Python

import frappe
import markdownify
@frappe.whitelist()
def html_to_markdown(html_content):
return markdownify.markdownify(html_content, heading_style="ATX")