Skip to content

tryParseMarkdownToBlocks parses blockquote as empty with content moved outside #1762

Open
@wuwenlong12

Description

@wuwenlong12

Using editor.tryParseMarkdownToBlocks, when parsing a Markdown blockquote like:

Indented content
the parser creates an empty blockquote block, and the "Indented content" text is moved to the next line as a separate paragraph outside the blockquote.

This issue also occurs in your official BlockNote demo — you can try the same input there to reproduce the problem.

Expected: the entire line should be parsed as a blockquote containing "Indented content".

Actual: empty blockquote plus separate paragraph with content outside.

Environment: @blocknote/core@0.31.2, React + BlockNoteView.

Please advise if there is a fix or workaround. Happy to provide minimal repro if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions