md2pdf
Version, currently master branch1 version
- master branchlatestOct 6, 2017
github.com/straight-shoota/md2pdf
Convert markdown files to pdf with flexible template and stylesheet.
23 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
md2pdf:
github: straight-shoota/md2pdf
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.23.1- License
- MIT
- Author
- Johannes Müller <straightshoota@gmail.com>
- Target
md2pdffrom src/cli.cr
Dependencies
Runtime Dependencies
- markd*github: icyleaf/markd
- crinja*github: straight-shoota/crinja
- baked_file_system*github: schovi/baked_file_system
- wkhtmltopdf-crystal*github: blocknotes/wkhtmltopdf-crystal
README
# MD2PDF Convert markdown files to PDF with flexible template and stylesheet using [wkhtmltopdf](https://wkhtmltopdf.org/). The app itself does not to much, it just ties together **wkhtmltopdf** (using [blocknotes/wkhtmltopdf-crystal](https://github.com/blocknotes/wkhtmltopdf-crystal)) with [**markd** ](https://github.com/icyleaf/markd) (Crystal CommonMark parser) and [**Crinja**](https://github.com/straight-shoota/crinja) (Crystal template engine). [**Examples**](https://straight-shoota.github.io/md2pdf/examples)  ## Installation There is currently no binary distribution, you'll need to build it yourself. ### Building instructions * install [Crystal](https://crystal-lang.com) * install [libwkhtmltox](https://wkhtmltopdf.org/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](https://github.com/straight-shoota/md2pdf/fork) * 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 1. Fork it ( https://github.com/straight-shoota/md2pdf/fork ) 2. Create your feature branch (git checkout -b my-new-feature) 3. Commit your changes (git commit -am 'Add some feature') 4. Push to the branch (git push origin my-new-feature) 5. Create a new Pull Request ## Contributors - [straight-shoota](https://github.com/straight-shoota) Johannes Müller - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 6, 2017
- Crystal
0.23.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/straight-shoota/md2pdf
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1