Note: Updated 2014-09-01 to fix a bunch of broken footnotes.

I just finished book 6 of Mizuni-san's Prince of the Dark Kingdom (Harry Potter fanfiction). I've been using an auto-generated EPUB, but the quality was pretty bad, since it didn't understand the formatting. To fix that, I decided to make my own EPUB using some Python and some Pandoc.

With the author's permission, I'm also posting links here.

If you want a PDF, the versions by With Pins and Needles are much better than I could make.

The code is on GitHub.