pull/243/head
fantasticit 2023-04-09 12:15:56 +08:00
parent 4d505de16e
commit 4eca312322
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ function fixNode(doc) {
}
if (node.type === 'tableRow') {
node.content = (node.content || []).filter((subNode) => subNode.type === 'tableCell');
node.content = (node.content || []).filter(
(subNode) => subNode.type === 'tableCell' || subNode.type === 'tableHeader'
);
}
if (node.type === 'tableCell') {