···7171 // if there is no html, but there is text, convert the text to markdown
7272 //
7373 let xml = new DOMParser().parseFromString(textHTML, "text/html");
7474- console.log(xml.textContent, text);
7575- if ((!textHTML || !xml.textContent) && text) {
7474+ if ((!textHTML || !xml.children.length) && text) {
7675 textHTML = markdownToHtml(text);
7776 }
7877 // if thre is html