Well, I went from markdown to pdf using pandoc/latex/markdown2pdf and then I think I used calibre.
However, I just tried taking one of your html files and converting it directly to epub (again, using calibre, which is free)..and it did a pretty good job.
I think if you can merge the chapters together and spend a bit of time tweaking it, you'll end up with a nice ebook.