diff --git a/packages/core/src/blocks/TableBlockContent/TableBlockContent.ts b/packages/core/src/blocks/TableBlockContent/TableBlockContent.ts index ac3afa4d5..352fbd70f 100644 --- a/packages/core/src/blocks/TableBlockContent/TableBlockContent.ts +++ b/packages/core/src/blocks/TableBlockContent/TableBlockContent.ts @@ -46,6 +46,17 @@ const TableParagraph = Node.create({ parseHTML() { return [ + { + preserveWhitespace: "full", + // set this rule as high priority so it takes precedence over the default paragraph rule, + // but only if we're in the tableContent context + priority: 210, + context: "tableContent", + tag: "p", + getAttrs: (_element) => { + return {}; + }, + }, { tag: "p", getAttrs: (element) => {