Skip to content

fix: Accurate bookmark chapter titles and page numbers#143

Merged
znelson merged 1 commit into
mainfrom
bookmark-calc
Jul 16, 2026
Merged

fix: Accurate bookmark chapter titles and page numbers#143
znelson merged 1 commit into
mainfrom
bookmark-calc

Conversation

@znelson

@znelson znelson commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Resolve the title page-accurately (getTocIndexForPage) so a bookmark in a multi-chapter spine shows its own sub-chapter, not the spine's first, and show chapter-relative pages instead of spine-local ones. Adds a non-destructive query-mode cache load (Section::loadCachedPageCount / SpineItem::loadForQuery) so browsing bookmarks can't invalidate reader caches.

@znelson
znelson force-pushed the bookmark-calc branch 2 times, most recently from 26af65f to 02567b3 Compare July 16, 2026 17:12
@znelson
znelson merged commit 8f53ea0 into main Jul 16, 2026
6 checks passed
@znelson
znelson deleted the bookmark-calc branch July 16, 2026 17:26
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