Use Pandoc +smart extension in Makefile
The --smart/-S option has been removed from Pandoc 2.0. Use the +smart extension instead.
This commit is contained in:
parent
5162407cef
commit
44f7df0b28
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -7,12 +7,12 @@ all: html epub mobi
|
||||||
html:
|
html:
|
||||||
rm -rf out/html && mkdir -p out/html
|
rm -rf out/html && mkdir -p out/html
|
||||||
cp -r images html/book.css 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:
|
epub:
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
rm -f out/black-book.epub
|
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:
|
mobi:
|
||||||
rm -f out/black-book.mobi
|
rm -f out/black-book.mobi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue