mirror of
https://github.com/readest/readest.git
synced 2026-05-17 21:15:16 +00:00
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>
|
||
|---|---|---|
| .. | ||
| foliate-js@3c597a6dc5 | ||
| js-mdict@52ac38779d | ||
| qcms@fc23a407f1 | ||
| simplecc-wasm@5e5b56f5b8 | ||
| tauri@a605890df2 | ||
| tauri-plugins@5183e314cb | ||