A Markdown to ePub converter script written in PHP
Switch branches/tags
Nothing to show
Clone or download
Latest commit e04a8a9 Feb 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Initial release 1.0 Feb 28, 2013
lib/Md2Epub Initial release 1.0 Feb 28, 2013
share Initial release 1.0 Feb 28, 2013
testbook Initial release 1.0 Feb 28, 2013
.gitignore Initial release 1.0 Feb 28, 2013
README.md Added link to PHPMaster article and Tim Boronczyk as contributor Mar 1, 2013
composer.json Update license to MIT Feb 6, 2018
composer.lock Update license to MIT Feb 6, 2018

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