a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

check empty children not textcontent

+1 -2
+1 -2
components/Blocks/TextBlock/useHandlePaste.ts
··· 71 71 // if there is no html, but there is text, convert the text to markdown 72 72 // 73 73 let xml = new DOMParser().parseFromString(textHTML, "text/html"); 74 - console.log(xml.textContent, text); 75 - if ((!textHTML || !xml.textContent) && text) { 74 + if ((!textHTML || !xml.children.length) && text) { 76 75 textHTML = markdownToHtml(text); 77 76 } 78 77 // if thre is html