Template for creating epub books from markdown using pandoc
.
- With package: pandoc-1.19.2.1-1-amd64.deb
- With
brew
:
brew install pandoc
- With package: pandoc-1.19.2.1-osx.pkg
- With MSI: pandoc-1.19.2.1-windows.msi
- Change to this directory.
- In
static/
directory, replace contents ofmetadata.yml
, andcover.jpg
with your own content. - In
chapters/
directory, add you content. Use file name to order the files as shown in the example. - Create your book with the following syntax below
pandoc -S --epub-embed-font='fonts/*.ttf' -o target/book.epub static/metadata.yml chapters/*.md
Your book will be exported astarget/book.epub
.
pandoc -S -o target/book.pdf static/metadata.yml chapters/*.md
Your book will be exported astarget/book.pdf
.