Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/diagram-block
@blocknote/mantine
@blocknote/math-block
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
@blocknote/xl-typst-exporter
commit: |
|
…ist item in its block The markdown export wrote each hard break as a backslash and a newline. A heading is one line, so the parse made a new paragraph from the text after the break. In a list item, the parser does not read the line after the break as text of the item: it makes a child paragraph of it, or a new paragraph if the line has no indent. The export now writes a hard break in the text of a heading or a list item as a `<br>` tag, so the text stays on one line. The markdown parser reads this tag as a hard break already. Backslashes directly before the tag are doubled, so that they do not escape it. A paragraph that is a child of a list item keeps the backslash form. The export now indents its lines after a hard break, so the parser reads them as a part of that paragraph. The parser is not changed.
d4bdd9a to
aeb6bfb
Compare
Summary
A heading or a list item with a line break (Shift+Enter) exported to markdown that the parser reads back as two blocks. In markdown, the text of a heading and the first line of a list item must be on one line.
The export now writes such a line break as a
<br>tag on the same line:* one<br>two. The parser already reads that tag as a line break. A paragraph that is a child of a list item keeps the backslash form, and its lines after a line break now get the indent of the list item.Testing
Notes
<br>in it.Summary by CodeRabbit
Bug Fixes
Tests