md2pdf
MD2PDF
Convert markdown files to PDF with flexible template and stylesheet using wkhtmltopdf.
The app itself does not to much, it just ties together wkhtmltopdf (using blocknotes/wkhtmltopdf-crystal) with markd (Crystal CommonMark parser) and Crinja (Crystal template engine).
Installation
There is currently no binary distribution, you'll need to build it yourself.
Building instructions
- install Crystal
- install libwkhtmltox For Ubuntu trusty:
sudo apt-get install xfonts-75dpi
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
sudo ldconfig
- download MD2PDF repository
- run
shards build
- now the executable is available in
bin/md2pdf
Usage
The programm is usually run as md2pdf myfile.md
which will generate a PDF at myfile.pdf
.
Contributing
- Fork it ( https://github.com/straight-shoota/md2pdf/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- straight-shoota Johannes Müller - creator, maintainer
Repository
md2pdf
Owner
Statistic
- 21
- 1
- 0
- 0
- 4
- about 7 years ago
- October 5, 2017
License
MIT License
Links
Synced at
Sat, 21 Dec 2024 18:44:18 GMT
Languages