Skip to content

feat: allow extension blocks to break a Paragraph#260

Merged
frostming merged 3 commits into
frostming:masterfrom
jothepro:feat/allow_block_plugin_paragraph_breaking
Apr 17, 2026
Merged

feat: allow extension blocks to break a Paragraph#260
frostming merged 3 commits into
frostming:masterfrom
jothepro:feat/allow_block_plugin_paragraph_breaking

Conversation

@jothepro

Copy link
Copy Markdown
Contributor

Currently the list of elements that can break a Paragraph is hardwired in the Paragraph implementation.

This PR suggests a new BlockElement property breaks_paragraph that allows extensions to define blocks that can also break a paragraph without the need to override the Paragraph break_paragraph implementation.

currently the list of elements that can break a Paragraph is hardwired in the Paragraph implementation.

This PR suggests a new BlockElement property `breaks_paragraph` that allows extensions to define blocks that can also break a paragraph without the need to override the Paragraph `break_paragraph` implementation.
Comment thread tests/test_basic.py Outdated
Comment thread tests/test_basic.py Outdated
refactor: method return types

Co-authored-by: Frost Ming <mianghong@gmail.com>
@frostming frostming merged commit c0d37df into frostming:master Apr 17, 2026
19 checks passed
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

Successfully merging this pull request may close these issues.

2 participants