diff --git a/packages/client/src/tiptap/markdown/markdown-to-prosemirror/html-to-prosemirror/index.ts b/packages/client/src/tiptap/markdown/markdown-to-prosemirror/html-to-prosemirror/index.ts index 60c840d2..e774bbd1 100644 --- a/packages/client/src/tiptap/markdown/markdown-to-prosemirror/html-to-prosemirror/index.ts +++ b/packages/client/src/tiptap/markdown/markdown-to-prosemirror/html-to-prosemirror/index.ts @@ -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') {