A simple solution for writing a book with markdown.
Check out the built pdf from here.
-
Install pandoc
-
Install wkhtmltopdf. (Used by pandoc as pdf engine)
In Windows, If pandoc still says wkhtmltopdf is not installed, add following wkhtmltopdf.bat
file to path: C:\Program Files\wkhtmltopdf\bin\
wkhtmltopdf.exe
Then if the path (C:\Program Files\wkhtmltopdf\bin
) doesn't exist in Environment Variables add it to Path variable.
Multiple sections in markdown files will be merged into single pdf file.
- Execute the
build.ps1
- Output will be generated under
built/
folder by default.
Edit the build.ps1
file and change $OutputFolder
variable.