diff --git a/app/components/RichText.tsx b/app/components/RichText.tsx index 3ccea33..554750d 100644 --- a/app/components/RichText.tsx +++ b/app/components/RichText.tsx @@ -164,17 +164,22 @@ function renderNode(node: LexicalNode, key: string): ReactNode { className="absolute left-8 top-[2.1875rem] w-[8.5rem] h-[1.4375rem] object-cover pointer-events-none" />
-
- {(node.children ?? []).map((child, i) => ( -

- {renderChildren(child.children, `${key}-q-${i}`)} -

- ))} -
+ {/* Lexical's real QuoteNode holds flat text/linebreak children + directly, NOT nested paragraphs — pressing Enter inside a + blockquote in the editor exits it into a new paragraph + rather than adding a line within it (confirmed by reading + @lexical/rich-text's QuoteNode.insertNewAfter). An earlier + version of this case assumed nested-paragraph children, + which only happened to work for this session's own + hand-authored seed JSON — any blockquote actually typed in + the CMS (Shift+Enter for a soft line break) rendered blank, + since child.children was undefined on a plain text node. */} +

+ {renderChildren(node.children, key)} +

); default: