Port HTML import improvements from enterprise codebase

This commit is contained in:
Tom Moor
2023-10-28 19:09:53 -04:00
parent 846fb122cd
commit 89f3d47327
4 changed files with 87 additions and 13 deletions

View File

@@ -11,6 +11,7 @@ export default function emptyParagraphs(turndownService: TurndownService) {
return (
node.nodeName === "P" &&
node.children.length === 1 &&
node.textContent?.trim() === "" &&
node.children[0].nodeName === "BR"
);
},