mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-26 19:26:46 -06:00
nav.xhtml had one entry per placed story, labelled with its first paragraph (body text too), and always the title "Contents". - Headings (h1-h6) get an id in the EPUB, and the navigation lists the h1-h3 headings of the stories in reading order, nested by level and linked to them. A document without headings keeps one entry per story (its first paragraph). - The navigation's title follows the language (Inhoud, Inhalt, Table des matières, Índice, Indice, 目次, 目录; Contents otherwise), and file.exportEpub takes tocTitle to set it. Fixes #769 Fixes #770