contentfully
contentfully copied to clipboard
_parseRichTextValue and _parseRichTextContent break @contentful/rich-text-html-renderer
While building a Nuxt3 app, noticed that the parsed output of _parseRichTextValue and friends restructure the rich text object output. This restructuring breaks compatibility with Contentful's Rich Text rendering tools.
https://github.com/nascentdigital/contentfully/blob/master/src/Contentfully.ts#L392
The output returns only the content array, missing the nodeType, marks array (sometimes) and the rich-text renderers fail without these elements.