diff --git a/src/muya/lib/utils/exportStyledHTML.js b/src/muya/lib/utils/exportStyledHTML.js index 95eb301c..6f322041 100644 --- a/src/muya/lib/utils/exportStyledHTML.js +++ b/src/muya/lib/utils/exportStyledHTML.js @@ -149,6 +149,9 @@ class ExportHTML { getHtml () { const rawHTML = document.querySelector(`#${CLASS_OR_ID['AG_EDITOR_ID']}`).outerHTML const $ = cheerio.load(rawHTML) + const headingClassNames = [ + 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' + ] const removeClassNames = [ `.${CLASS_OR_ID['AG_REMOVE']}`, `.${CLASS_OR_ID['AG_OUTPUT_REMOVE']}`, @@ -162,6 +165,15 @@ class ExportHTML { $(`.${CLASS_OR_ID['AG_ACTIVE']}`).removeClass(CLASS_OR_ID['AG_ACTIVE']) $(`[data-role=hr]`).replaceWith('