if the junk code is in the source epub ( as per post#1) , of the thread, it makes more sense to regex it out, rather that expect kepub outputs to somehow work around it.
there is no need for hundreds of <a .. page_ID... > fragments
if its simple fiction - no footnotes needed - i use a standard regex line to wipe out all anchors, when polishing a book
|