/pandoc-markdown-book-template

A template for creating epub books from markdown using pandoc.

Primary LanguageCSS

Pandoc Book Maker Template

Template for creating epub books from markdown using pandoc.

forthebadge

Instructions

Install Pandoc

Debian, Ubuntu, and derivatives

macOS

  • With brew:
brew install pandoc

Windows

Create Book

  1. Change to this directory.
  2. In static/ directory, replace contents of metadata.yml, and cover.jpg with your own content.
  3. In chapters/ directory, add you content. Use file name to order the files as shown in the example.
  4. Create your book with the following syntax below

EPUB

pandoc -S --epub-embed-font='fonts/*.ttf' -o target/book.epub static/metadata.yml chapters/*.md

Your book will be exported astarget/book.epub.

PDF

pandoc -S -o target/book.pdf static/metadata.yml chapters/*.md

Your book will be exported astarget/book.pdf.