Quote:
Originally Posted by jackie_w
Welcome to the forum.
Does this work for you?
Set [Convert] - [Structure Detection] "Detect chapters at" to
//h:div[re:test(@class, "toc1", "i")]
|
The problem is not building the TOC. I can even get level 1 and level 2 TOC links—that is not a problem.
I want the text in the TOC to be what I want like "chapter 1" and the place it links to, to say what I want, like
today's date. I try Sigil editor, but changing the text of the TOC change the text of that is in the document.
So if there was a way to tell Calibre, in the HTML file,that this is the text to be place in TOC, and to not put in as text in the document.
If I used this code below, suggest by kovidgoyal, Calibre will know that that is why you want you link to in the TOC, and the name of the TOC entry, without adding that text in the document.
Code:
<div class="toc1" style="display:none">
Chapter 1</div>