markdown-to-pdf

Solid

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.

Data & Documents 1 stars 0 forks Updated 4 days ago Apache-2.0

Install

View on GitHub

Quality Score: 80/100

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

Skill Content

# Rendering Markdown PDF ## Overview Markdown to PDF with Mermaid is a visual export task, not a plain file conversion. Render diagrams, style them consistently, disable print headers, then verify the PDF pages visually. ## When to Use Use for: - Markdown docs containing Mermaid diagrams - PDF export where diagrams are blank, oversized, clipped, or colorless - Chrome/Puppeteer exports with unwanted page headers/footers - report/document exports where tables and diagrams must stay readable Do not use for plain text Markdown without diagrams. ## Core Workflow 1. **Preflight** - Count Mermaid blocks in source. - Create a temp build dir. - Never edit source Markdown. 2. **Render Mermaid explicitly** - Use `mmdc` or browser-side Mermaid. - Apply a theme config with colors, font, and white background. - Set Mermaid `flowchart.htmlLabels=false` for PDF exports. Chrome PDF can drop `foreignObject` labels, causing blank boxes. - Wrap each diagram in a controlled container. 3. **Build HTML with print CSS** - Set `@page { margin: 0.55in; }`. - Add a designed Table of Contents near the top for long documents. Generate it from headings in the temporary build, not by editing source Markdown. Links are preferred when supported. - Add PDF outline/bookmarks for Preview/sidebar navigation. This is separate from visible TOC content. Use document headings, usually title + major sections. - Do not leave the TOC as raw Markdown bullets with awkward hyperli...

Details

Author
quickcall-dev
Repository
quickcall-dev/skills
Created
4 months ago
Last Updated
4 days ago
Language
Shell
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Featured

md-to-pdf

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".

313 Updated 4 days ago
Mathews-Tom
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 yesterday
dzivkovi
Data & Documents Listed

md-to-docs

Export a folder of Markdown files into polished per-file .pdf AND .docx documents, with Mermaid diagrams rendered as real images and full Thai-language support. Use whenever the user wants to turn .md docs into shareable/printable Word or PDF deliverables — e.g. "แปลง md เป็น pdf/docx", "export เอกสารเป็น Word", "ทำเอกสารส่งจาก markdown", "รวมสเปกเป็น pdf", "convert these markdown files to documents", "make printable docs from this folder". Each .md becomes its own PDF + DOCX (not one merged file). Do NOT use for authoring/analyzing the content itself (that is system-analyst) or for a single throwaway HTML preview.

0 Updated 2 weeks ago
UMIN1703