As you may know, there are two writing modes for a Leanpub book:
- Leanpub Flavoured Markdown (the default, and the way that is documented at https://leanpub.com/help/manual)
- Markua (specified at https://leanpub.com/markua/read)
In Markua, we support endnotes, and this works on Leanpub today. Currently they only go at the end of each chapter, not at the end of the book.
Here's how they work: https://leanpub.com/markua/read#leanpub-auto-endnotes
This has an endnote[^^thenote].
[^^thenote]: This is the endnote content.
To put your book in Markua mode, go to https://leanpub.com/markuainbrowserdebugging/edit_manuscript_format
To learn what doesn't work yet in Markua, go to: https://leanpub.com/markua/read#leanpub-auto-todo-in-leanpub