Python 2 script that takes a list of Markdown files and generates an EPUB out of them
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MIT-LICENSE.txt
README.md
md2epub.py
sample.book
sample2.book

README.md

md2epub

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.

Dependencies

Usage

  1. Install python-markdown2 and smartypants.py.
  2. Create a book file. See sample.book for an example. (It's pretty simple.)
  3. Run md2epub.py myfile.book and voila, instant EPUB.

Notes

  • 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.