Skip to content

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

Description

@abouthalf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions