src/extensions/nodes/html.js
/**
 * format html block as per the commonmark spec
 */
format html block as per the commonmark spec
format html block as per the commonmark spec
function formatBlock(html) {
    const dom = elementFromString(html);
    const element = dom.firstElementChild;
    element.innerHTML = element.innerHTML.trim()
        ? `\n${element.innerHTML}\n`
        : `\n`;
    return element.outerHTML;
}
function formatBlock ( html ) { const dom = elementFromString ( html ) ; const element = dom . firstElementChild ; element . innerHTML = element . innerHTML . trim ( ) ? ` \n ${ element . innerHTML } \n ` : ` \n ` ; return element . outerHTML ; }
format html block as per the commonmark spec
format html block as per the commonmark spec