View Single Post
Old 09-05-2013, 05:49 PM   #1
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
ebook-convert breaks internal hyperlinks?

Hi!

I have a shell script I use to grab some URLs generated by my app via wget, and then convert the XHTML documents into EPUB and MOBI ebooks, thanks to Calibre. Very nice.

I have added internal hyperlinks to the XHTML documents to link footnote markers in the text to endnotes at the end of the document and vice versa.

Code:
My footnote marker<a href="#endnote_1x824" id="marker_1x824">1</a>.

...

<li id='endnote_1x824'>My footnote text. <a href='#marker_1x824'>^</a></li>
When I noticed the ebook hyperlinks were broken, I checked WGET to make sure that WGET wasn't corrupting the links, but the links still looked normal.

But after I convert a document to EPUB, the links are messed up:

Code:
<li id="endnote_1x824" class="calibre19">My footnote text. <a href="{HTML filename}#marker_1x824">^</a></li>
Is there an argument I can pass to ebook-convert to bring working internal hyperlinks over?
johnstephens is offline   Reply With Quote