Quote:
Originally Posted by GrannyGrump
Is there any way to force the Sigil TOC auto-generation to use *all* the existing ID tags?
|
It might be possible to write a Python script for that, however, IIRC, you're using an older Sigil version.
AFAIK, the only way to outsmart Sigil is to insert a dummy h1 heading with a
sigil_not_in_toc class after the body tag. I.e., you'd have to do the following:
1. Replace all
<body> tags with
<body><h1 id="dummy" class="sigil_not_in_toc">dummy</h1>.
2. Generate the TOC.
3. Delete all
<h1 id="dummy" class="sigil_not_in_toc">dummy</h1> headings.