Quote:
Originally Posted by kovidgoyal
The only way calibre will completely remove a file is if you incorrectly marked it as the titlepage or it is not in the spine.
As for removing CSS, calibre completely rewrites all css, flattening it and keeping only the CSS that actually applies to your markup.
|
Thank you very much, kovidgoyal,
I am not attached to the css classes I name, however I am very partial to the markup that is being removed completely. I am using the following markup to identify specific sub-headings in the text that are linked to the table of contents I created in TableOfContents.html, e.g.:
excerpt from TableOfContents.html:
<p class="toc-level1"><a href="chapter-1.html#chap1-3">Checking Goals at the Door</a></p>
excerpt from chapter-1.html:
<p class="subhead"><span id="chap1-3">Checking Goals at the Door</span></p>
Oddly, the Calibri conversion process does not change the subhead class but it removes the span tags completely. Hence, my strategy to link my table of contents via HTML is foiled.
excerpt from chapter1.html, post-conversion:
<p class="subhead">Checking Goals at the Door</p>