md-to-pdf

Featured

Convert Markdown to styled PDFs with Mermaid diagrams, LaTeX/KaTeX math, tables, and code highlighting. Triggers on: "convert markdown to pdf", "make a pdf from this md", "export markdown as pdf", "pdf from markdown with equations".

Data & Documents 325 stars 49 forks Updated 5 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Markdown to PDF Converter Converts Markdown files to professionally styled PDFs with full rendering of Mermaid diagrams, LaTeX math (via KaTeX), tables, syntax-highlighted code blocks, and all standard Markdown features. ## Architecture ````text Input .md file │ ├─ Step 1: Extract ```mermaid blocks → render to SVG via mmdc (Mermaid CLI + Puppeteer) │ Replace mermaid code blocks with inline <svg> in the markdown source │ ├─ Step 2: pandoc converts modified markdown → standalone HTML5 │ (--katex flag preserves raw LaTeX in <span class="math ..."> elements) │ ├─ Step 3: Node.js KaTeX server-side rendering │ Replaces math spans with fully rendered KaTeX HTML (no client-side JS needed) │ ├─ Step 4: CSS injection │ KaTeX stylesheet (with local font paths) + professional document styles + optional custom CSS │ └─ Step 5: Playwright (headless Chromium) prints final HTML → PDF ↓ Output .pdf file ```` ## Supported Features | Feature | Rendering Engine | Notes | | -------------------- | -------------------------------- | --------------------------------------------------------------------- | | Mermaid diagrams | mmdc (mermaid-cli) via Puppeteer | flowchart, sequence, class, state, ER, gantt, pie, git, mindmap, etc. | | LaTeX math (inline) | KaTeX serve...

Details

Author
Mathews-Tom
Repository
Mathews-Tom/armory
Created
7 months ago
Last Updated
5 days ago
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

markdown-to-pdf

Use when exporting Markdown reports to PDF, especially when Mermaid diagrams render blank, oversized, lose color, tables overflow, a TOC or PDF outline is needed, or Chrome/Puppeteer adds unwanted page headers and footers.

2 Updated 1 months ago
quickcall-dev
AI & Automation Listed

md-to-html

Convert Markdown to standalone HTML pages with embedded CSS, images, and Mermaid diagrams

0 Updated 1 months ago
fabioc-aloha
Data & Documents Listed

markdown-to-pdf

Convert Markdown into a plain, internal-grade PDF with clickable links (including timestamped video deep-links), real tables, locally rendered Mermaid diagrams, and light header/footer stamps chosen by audience preset (Page N of M, version and date, plus either the source filename for your own research prints or your contact line for a deliverable). Use when the user wants to print or share a Markdown doc as a PDF that should read as a working document, not a branded deliverable: briefings, architecture notes, internal memos, work notes, docs with Mermaid diagrams or comparison tables. Triggers: 'markdown to pdf', 'print this markdown', 'make a PDF of this doc/briefing/note', 'PDF with mermaid diagrams', 'render the tables properly in PDF', 'internal PDF, not the branded one', 'plain PDF for the team'. NOT for polished client-facing documents (use branded-docx or brief-creator) and not for e-reader output (use markdown-to-epub, the reading/Kindle sibling).

0 Updated 5 days ago
dzivkovi