Quote:
Originally Posted by spiralpath
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>
|
A quick look at your code suggests a possibility that your spans do not include a class so they are being removed as do nothing code. My personal feeling is that should only happen to <span> tags that do not include other information.
As suggested, using <p class="subhead" id="chap1-3"> would be cleaner. If you really want to use the spans, something like <span class="dummy" id="chap1-3"> would survive the conversion process.