I set up endnote links in an epub such that the endnote text has a back link pointing back to the source text. Like so:
<a id="src-a1-1" href="#en-a1-1">
However, Calibre has stripped out all of the ID attributes, and replaced the hash part of the back link to point, instead, to the main div of the source chapter. eg:
I've searched online but haven't found anything related to this. Has anyone run into this before? Is there a fix? Or, is this just the way it is, for some reason?