md-to-pdf
CommunityCreate print-ready PDFs from Markdown
AuthorMathews-Tom
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Converts Markdown documents into professionally styled, print-ready PDF files while preserving complex content such as Mermaid diagrams, LaTeX math, tables, and syntax-highlighted code so users do not need to manually reformat or rebuild documents for distribution.
Core Features & Use Cases
- High-fidelity rendering: Full pipeline that renders Mermaid diagrams to SVG, converts Markdown to HTML via pandoc, performs server-side KaTeX math rendering, injects professional CSS, and prints to PDF via Playwright/Chromium.
- Flexible export options: Supports page sizes (A4/Letter/Legal/A3), custom margins, landscape orientation, header/footer page numbers, custom CSS injection, and flags to skip Mermaid or math rendering for speed.
- Use Case: Turn technical notes, research drafts, or documentation containing diagrams and equations into a single, publication-quality PDF without manual layout work.
Quick Start
Run the conversion using the included script, for example: python3 scripts/md_to_pdf.py input.md output.pdf
Dependency Matrix
Required Modules
pandocmmdcnodekatexplaywrightchromium
Components
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: md-to-pdf Download link: https://github.com/Mathews-Tom/praxis-skills/archive/main.zip#md-to-pdf Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.