Skip to content

feat(pagination): keep headings with the block that follows - #14

Merged
bgoswaldo merged 2 commits into
betafrom
feat/keep-heading-with-next
Nov 2, 2026
Merged

bgoswaldo merged 2 commits into
betafrom
feat/keep-heading-with-next

Conversation

@bgoswaldo

Copy link
Copy Markdown
Contributor

A heading no longer ends a page on its own; it moves to the next page with the block that follows.

bgoswaldo and others added 2 commits November 2, 2026 07:11
A heading could end a page on its own while its content started the
next one. paginate now treats a run of headings plus the first block
after it as one unit and moves it to the next page when it does not
fit; a unit taller than a page is packed block by block as before.
usePagination takes the flags as an optional fifth argument and both
viewers pass them, so existing callers are unaffected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@bgoswaldo
bgoswaldo merged commit 7d6f2b5 into beta Nov 2, 2026
1 check passed
@bgoswaldo
bgoswaldo deleted the feat/keep-heading-with-next branch November 2, 2026 13:19
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.

1 participant