Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abouthalf opened this issue Jun 13, 2023 · 0 comments

Comments

@abouthalf
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant