From 44f7df0b280ab94aad6e30881999d67afeb9a438 Mon Sep 17 00:00:00 2001 From: rnndxb wxcy Date: Thu, 6 Sep 2018 09:59:58 -0400 Subject: [PATCH 1/2] Use Pandoc +smart extension in Makefile The --smart/-S option has been removed from Pandoc 2.0. Use the +smart extension instead. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 776d8a8..4de9dda 100644 --- a/Makefile +++ b/Makefile @@ -7,12 +7,12 @@ all: html epub mobi html: rm -rf out/html && mkdir -p out/html cp -r images html/book.css out/html/ - pandoc -S --to html5 -o out/html/black-book.html --section-divs --toc --standalone --template=html/template.html $(FILES) + pandoc --to html5+smart -o out/html/black-book.html --section-divs --toc --standalone --template=html/template.html $(FILES) epub: mkdir -p out rm -f out/black-book.epub - pandoc -S --to epub3 -o out/black-book.epub --epub-cover-image images/cover.png --toc --epub-chapter-level=2 --data-dir=epub --template=epub/template.html $(FILES) + pandoc --to epub3+smart -o out/black-book.epub --epub-cover-image images/cover.png --toc --epub-chapter-level=2 --data-dir=epub --template=epub/template.html $(FILES) mobi: rm -f out/black-book.mobi From c1e37c257b7af9d17ad8487200501102f1d7e0ec Mon Sep 17 00:00:00 2001 From: rnndxb wxcy Date: Thu, 6 Sep 2018 10:14:06 -0400 Subject: [PATCH 2/2] Update README.md to specify Pandoc 2.0 or greater --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b48011e..ecb612d 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Some larger changes could be made to improve the content. I'd love to see some o You need to have the following software installed and on your `PATH` before you begin: - * [pandoc](http://johnmacfarlane.net/pandoc/) for Markdown to HTML and Epub conversion. + * [pandoc](http://johnmacfarlane.net/pandoc/) version 2.0 or greater for Markdown to HTML and Epub conversion. * [kindlegen](http://www.amazon.com/gp/feature.html?docId=1000765211) for Epub to Mobi conversion. To generate an e-reader friendly version of the book, you can use `make` with one of the following options: