diff --git a/components/PayloadRichText.tsx b/components/PayloadRichText.tsx index 96fdf997..9e4dabb8 100644 --- a/components/PayloadRichText.tsx +++ b/components/PayloadRichText.tsx @@ -27,6 +27,24 @@ const jsxConverters: JSXConverters = { return ; } + // Handle markdown-style lists embedded in text nodes from MDX migration + if (text && text.includes('\n- ')) { + const parts = text.split('\n- ').filter(Boolean); + // If first part doesn't start with "- ", it's a prefix paragraph + const startsWithDash = text.trimStart().startsWith('- '); + const prefix = startsWithDash ? null : parts.shift(); + return ( + <> + {prefix && {prefix}} + + + ); + } + if (node.format === 1) return {text}; if (node.format === 2) return {text}; return {text};