github rupor-github/fb2cng v1.2.2

2 days ago

Bug fix

  • Fix missing navigation TOC for untitled wrapper sections

    • When an FB2 file has a top-level <section> with no <title> (a wrapper section containing titled subsections), all chapter entries were silently dropped from the navigation TOC. The skip logic for untitled entries discarded their children instead of promoting them to the parent level.
    • Fixed in both EPUB (NCX, nav.xhtml, TOC page) and KFX/AZW8 (book_navigation, TOC page) output paths.
  • Fix vignette and heading treatment for FB2 files with untitled wrapper sections

    • Introduce titleDepth — a visual depth counter that only increments when entering a titled <section>, separate from the structural depth which always increments. This ensures that titled children of an untitled wrapper get chapter-level treatment (h1, chapter vignettes, chapter-title CSS class) instead of being demoted to section-level.
    • EPUB: add titleDepth to splitResult, appendSectionContent, appendFlowItems, and renderSplitSection. All visual decisions (vignette position, heading level, wrapper class) now use titleDepth.
    • KFX: add titleDepth to sectionWorkItem and processStorylineSectionContent. End-vignette and title-wrapper logic uses titleDepth for the chapter-vs-section distinction. Fix isChapterEnd propagation so untitled wrapper parents pass it to all children (each is an independent chapter), not only the last.

Full Changelog: v1.2.1...v1.2.2

Don't miss a new fb2cng release

NewReleases is sending notifications on new releases.