nntrn
4/2/2019 - 3:30 PM

[pandoc books]

[pandoc books]

source: https://medium.com/programmers-developers/building-books-with-markdown-using-pandoc-f0d19df7b2ca

Creating a simple Markdown book

To create a simple book, create a markdown file and feed it into pandoc. For example, you can try these steps:

  • Create a content.markdown file.
  • Open your Terminal/Command Prompt.
  • Go to the directory where that file is located.
  • Add some markdown to the file. Here’s an example of what it should look like:
# Chapter 1
## Subtitle
This is your first markdown chapter!

Building the book Run this command to create the book:

pandoc -S -o book.epub content.markdown