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.
- Install
python-markdown2
andsmartypants.py
. - Create a book file. See
sample.book
for an example. (It's pretty simple.) - Run
md2epub.py myfile.book
and voila, instant EPUB.
- The book file can be called anything and doesn't have to end in ".book".
sample.book
has the Markdown files and images in separate subdirectories, but that's optional.sample2.book
shows how to do a hierarchical table of contents- There are several Dublin Core features I haven't included.