md2epub is a Python script for making EPUB books out of Markdown files. Licensed under the MIT license.
The EPUB-generation code is based on Matt Turner's GetBook.py.
- Create a book file. See
sample.bookfor an example. (It's pretty simple.)
md2epub.py myfile.bookand voila, instant EPUB.
- The book file can be called anything and doesn't have to end in ".book".
sample.bookhas the Markdown files and images in separate subdirectories, but that's optional.
sample2.bookshows how to do a hierarchical table of contents
- There are several Dublin Core features I haven't included.