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.
- When an FB2 file has a top-level
-
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 structuraldepthwhich always increments. This ensures that titled children of an untitled wrapper get chapter-level treatment (h1, chapter vignettes,chapter-titleCSS class) instead of being demoted to section-level. - EPUB: add
titleDepthtosplitResult,appendSectionContent,appendFlowItems, andrenderSplitSection. All visual decisions (vignette position, heading level, wrapper class) now usetitleDepth. - KFX: add
titleDepthtosectionWorkItemandprocessStorylineSectionContent. End-vignette and title-wrapper logic usestitleDepthfor the chapter-vs-section distinction. FixisChapterEndpropagation so untitled wrapper parents pass it to all children (each is an independent chapter), not only the last.
- Introduce
Full Changelog: v1.2.1...v1.2.2