Skip to content

Feat: add configurable pagination options and improve markdown handling#25

Merged
DeepanshKhurana merged 4 commits intomainfrom
development
Mar 6, 2026
Merged

Feat: add configurable pagination options and improve markdown handling#25
DeepanshKhurana merged 4 commits intomainfrom
development

Conversation

@DeepanshKhurana
Copy link
Member

Related Issue:
Fixes #24
Fixes #23
Fixes #22

Description of Changes:

  • Added reader.charsPerPage config option to control pagination size (default: 2200)
  • Made pagination markdown-aware: lists, code blocks, and blockquotes now split at element boundaries instead of getting truncated mid-item
  • Reordered build scripts so generate-body-of-work.ts runs before index-pages.ts, fixing the first-deploy missing page issue
  • Extracted chunking logic to build/utils/markdown-chunker.ts

Additional Notes:
The pagination algorithm now applies scaling factors to block types (lists ×1.4, code ×1.3, blockquotes ×1.2) to account for their taller rendered height compared to prose paragraphs.

@DeepanshKhurana DeepanshKhurana self-assigned this Mar 6, 2026
@DeepanshKhurana DeepanshKhurana added bug Something isn't working enhancement New feature or request labels Mar 6, 2026
@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ode-demo Ready Ready Preview, Comment Mar 6, 2026 10:15am
ode-docs Ready Ready Preview, Comment Mar 6, 2026 10:15am

@DeepanshKhurana DeepanshKhurana merged commit 994a04a into main Mar 6, 2026
4 checks passed
@DeepanshKhurana DeepanshKhurana deleted the development branch March 6, 2026 10:15
@DeepanshKhurana DeepanshKhurana restored the development branch March 6, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQUEST] Make reader mode page size configurable [BUG] Body of work page missing on first deploy [BUG] Reader mode cuts off list items

1 participant