View Single Post
Old 05-06-2016, 12:22 AM   #8
intrstngtimes
Junior Member
intrstngtimes began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2016
Device: Kindle Paperwhite, Kobo Aura One, Likebook Mars T80D
Quote:
Originally Posted by Doitsu View Post
KindleGen has one really annoying bug: it can't resolve links to elements that have been hidden with:

Code:
display: none;
I your hidden class uses display: none; KindleGen will treat the whole heading as if it didn't exist. That includes ids.
I already got bitten by that bug earlier : / It was when I had done my anchor tags like this:

Code:
<a name="Start" class="hidden">Chapter One</a>
After getting a warning from Kindle Previewer, I changed the code to what you saw in my first post (i.e. wrapping the chapter name in a span with class "hidden" instead of giving the "hidden" class to the anchor tag), and the warning no longer occurred. The rest of my table of contents links work fine. It's just the SRL that's messed up.

I've done some further research and learned this is another option for the <guide> section:

Code:
<reference href="Text/Frontmatter.html#coverpage" title="Start here" type="other.start"/>
It's definitely not in my <guide> section at present, so could that be the trick? Setting type to "other:start" instead of "text"?
intrstngtimes is offline   Reply With Quote