fix: Paragraphs lost in table cells
closes OLN-262
This commit is contained in:
@@ -23,8 +23,8 @@ export default function sanitizeTables(turndownService: TurndownService) {
|
||||
filter(node) {
|
||||
return node.nodeName === "P" && inHtmlContext(node, "table");
|
||||
},
|
||||
replacement(content) {
|
||||
return content.trim();
|
||||
replacement(content, node) {
|
||||
return content.trim() + (node.nextSibling ? "\\n" : "");
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user