This is one area where I've found it's easiest to compose the document in Word (which will fill in the links for you on endnotes) and then export to ePub using Atlantis Word Processor, which will preserve the endnote links. The result still needs to be cleaned up in Sigil (mostly to convert paragraph margins to em and to fix a few other things), but it's very usable.
|