Repository navigation
Conversation
Mart1200
added a commit
to Mart1200/rsvp-reading
that referenced
this pull request
Sep 26, 2026
Adds a chapter dropdown to the header and shows the current chapter
while paused. Reworked from the original PR:
- Chapters come from the EPUB table of contents (incl. anchors) and
the PDF outline instead of guessing from numbers in the text
- Pasted text: line-based heading detection ("Chapter 3", "Kapitel IV",
"Prologue", "2.1 Methods"), skipping years and sentences
- Current chapter now follows the reading position (the original
reactive statement had no dependencies and only ran once)
- Chapters are stored with the saved session
- EPUB text extraction separates block elements with spaces and skips
script/style, so headings no longer merge with the next word
- No debug output, no unrelated package-lock changes; with tests
From thomaskolmans#15.
Co-authored-by: Ck-Dev786 <182727623+Ck-Dev786@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Add Chapter Navigation Support
This PR introduces chapter-aware navigation to improve usability when reading long documents.
🚀 Features
🧠 Implementation Details
detectChapters()to parse numeric section headingsThis improves navigation significantly for long documents without affecting existing functionality.

