Thread: TOC formatting
View Single Post
Old 09-08-2025, 11:56 AM   #13
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,939
Karma: 6361444
Join Date: Nov 2009
Device: many
You do understand that the nav document and the html TOC are two different things, right? The nav myst be kept fully machine parseable at all times as it fills the role the epub2 ncx fills. But you can remove the nav from the spine and use a separate html TOC that you fully control to present to the e-reading user. In that you can use and formats or tags you want. That said, using proper heading tags is important for accessibility and screen readers.

If all you want us to change the heading in the h1 tag from "Table of Contents" to something else in the nav, that is safe to do but use of the nav tag, epub:type and proper nesting using ol and li tags can not be removed in the nav.

So you might want to remove the nav from the spine and create an html TOC and modify it to your hearts content.
KevinH is online now   Reply With Quote