erinther / md2epub

A Markdown to ePub converter script written in PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Markdown to ePub converter script written in PHP