md2epub
md2epub copied to clipboard
A Markdown to ePub converter script written in PHP
Markdown to ePub Utility
md2epub
is a PHP script that converts a directory of markdown documents (*.md
) and other resources to an electronic book compatible with the ePub 2.0.1 standard.
The instruction to compile the ebook must be entered in the book.json
file.
The Markdown parser library is Michel Fortin's PHP Markdown Extra.
The template parser library is RainTPL.
More info on PHPMaster's article Building ePub with PHP and Markdown.
Installation
Copy the application directory in a shared path (eg /usr/local
) and create a link to bin/md2epub
.
Usage
From the command line type:
md2epub /source/ebook/directory/ /dest/book.epub