contentfully icon indicating copy to clipboard operation
contentfully copied to clipboard

_parseRichTextValue and _parseRichTextContent break @contentful/rich-text-html-renderer

Open abouthalf opened this issue 2 years ago • 0 comments

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.

abouthalf avatar Jun 13 '23 21:06 abouthalf