readest/packages
Huang Xin 1d4b7eed87
fix(txt): merge scene-break sections into the preceding chapter (#4063) (#4207)
The TXT-to-EPUB segment regex splits on dash dividers (`-{8,}`), which
authors commonly use as in-chapter scene breaks. Each heading-less section
after such a divider was emitted as its own chapter — a numbered paragraph
fallback chapter, or a chapter titled after a stray sentence — flooding the
generated TOC with entries that aren't real chapters.

Mark chapters with whether their title came from a detected heading, and
merge heading-less chapters into the preceding detected chapter instead of
pushing them as separate TOC entries. Fully heading-less text still chunks
into numbered fallback chapters as before.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 18:20:55 +02:00
..
foliate-js@3c597a6dc5 fix(txt): merge scene-break sections into the preceding chapter (#4063) (#4207) 2026-05-17 18:20:55 +02:00
js-mdict@52ac38779d fix(share): make /s landing build under Next 16 layout-prop validation (#4040) 2026-05-03 04:40:16 +02:00
qcms@fc23a407f1 chore(fdroid): get rid of wasm binaries in fdroid build (#3677) 2026-03-29 18:31:46 +02:00
simplecc-wasm@5e5b56f5b8 chore(fdroid): get rid of wasm binaries in fdroid build (#3677) 2026-03-29 18:31:46 +02:00
tauri@a605890df2 fix: fixed status info layout in vertical mode, fixed Android build (#3735) 2026-04-03 21:41:49 +02:00
tauri-plugins@5183e314cb feat(library): backup to and restore from a zip file (#3571) 2026-03-20 18:27:52 +01:00