A Markdown to ePub converter script written in PHP
PHP CSS HTML Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib/Md2Epub
share
testbook
.gitignore
README.md
composer.json
composer.lock

README.md

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

Contributors