Skip to content

Upgrading to React 19 broke the Markdown Editor #238

@khanakia

Description

@khanakia

I just upgraded to React 19 and now if I add any Custom HTML tags it throws an error in the console

When I disabled the preview then it works fine

<MarkdownEditor
   enablePreview={false}
/>
The tag <statlistitem> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter. Error Component Stack
    at statlistitem (<anonymous>)
    at Markdown (index.js:163:35)
    at div (<anonymous>)
    at eval (preview.js:34:7)
    at eval (index.js:33:110)
    at div (<anonymous>)
    at div (<anonymous>)
    at div (<anonymous>)
    at MarkdownEditorInternal (index.js:71:7)
    at LoadableComponent (dynamic-BkHm8yrd.js:133:9)

Screenshot 2025-01-06 at 12 18 32 AM

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