View Single Post
Old 06-12-2018, 12:42 AM   #6
spiralpath
Member
spiralpath doesn't litterspiralpath doesn't litter
 
spiralpath's Avatar
 
Posts: 10
Karma: 116
Join Date: May 2011
Device: Multiple
Quote:
Originally Posted by PeterT View Post
I hate to be the bearer of bad news but if you do a conversion, calibre will rewrite / merge all the CSS and assign the new classes its own names.

Sent from my Nexus 7 using Tapatalk
Thank you, Peter.

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>
spiralpath is offline   Reply With Quote