View Single Post
Old 12-28-2020, 11:38 AM   #10
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by exaltedwombat View Post
Generate TOC looks for text items that are designated as Headers, that is ones inside <h1></h1>, <h2></h2> etc. tags. If the body of a chapter file starts with something like

<h1>Chapter 1. The Beginning</h1>

the TOC generator will have something to work with.
Thanks, I think I understand a little more about how it works now.

I have had a look at the book that was not working and I see that the chapters all start with p class tags like this - <p class="h2" id="chapter2">Chapter 2</p>

So if I understand you correctly if I were to change all of them to 'h' class tags the ToC generator would pick them up, right?
Ashjuk is offline   Reply With Quote