π¦ ClawHub
Markdown to PDF
by @alone86136
Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD...
TERMINAL
clawhub install markdown-to-pdfπ About This Skill
name: markdown-to-pdf description: Convert Markdown files to beautiful PDF documents. Supports custom styling, code highlighting, and multiple output options. Use when users need to convert MD to PDF for documentation, notes, reports, or sharing.
markdown-to-pdf
Overview
Convert Markdown text or files to professional-looking PDF documents. Uses markdown package to convert MD to HTML, then wkhtmltopdf to generate PDF. Supports code syntax highlighting and custom CSS styling.
Features
Dependencies
pip install markdown pygments
You also need wkhtmltopdf installed:
macOS: brew install wkhtmltopdf
Ubuntu/Debian: sudo apt install wkhtmltopdf
Usage
Basic conversion
python3 scripts/convert.py input.md output.pdf
With custom CSS
python3 scripts/convert.py --css custom.css input.md output.pdf
Resources
scripts/
convert.py - Convert Markdown file to PDFπ‘ Examples
Basic conversion
python3 scripts/convert.py input.md output.pdf
With custom CSS
python3 scripts/convert.py --css custom.css input.md output.pdf