Md2pdf
Convert markdown files to pdf with flexible template and stylesheet
Install / Use
/learn @straight-shoota/Md2pdfREADME
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-75dpiwget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.debsudo dpkg -i wkhtmltox-0.12.2.1_linux-trusty-amd64.debsudo 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
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
