markdown-to-pdf

Featured

Convert a markdown file to PDF using mistune + reportlab. Use when the user wants to convert a .md file to PDF, or when another skill needs to produce a PDF from markdown output.

Data & Documents 364 stars 82 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 90/100

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

Skill Content

# Markdown to PDF Converter Converts a markdown file to a professionally formatted PDF. Pure Python — no system tools required. ## Dependencies Requires two Python packages (already in `pyproject.toml`): ``` mistune>=3.2 reportlab>=4.0 ``` Install with: `uv sync` (or `pip install mistune reportlab`) ## Instructions ```bash uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py <input.md> [output.pdf] ``` - `input.md` — path to the markdown file (required) - `output.pdf` — output path (optional; defaults to same directory and basename as input) ## Output The script returns JSON with: - `success` — `true` or `false` - `input` — resolved absolute path of the input file - `output` — resolved absolute path of the generated PDF - `error` — error message if `success` is `false` - `generated_at` — NY timezone timestamp - `data_delay` — always `"real-time"` After conversion, tell the user the output PDF path. ## Examples ```bash # Convert sandbox/report.md → sandbox/report.pdf (default output) uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py sandbox/report.md # Explicit output path uv run python .claude/skills/markdown-to-pdf/scripts/markdown_to_pdf.py sandbox/report.md sandbox/AAPL_Report_2026-05-20_1430.pdf ``` ## Supported Markdown - Headings (H1–H3) - Paragraphs, bold, italic - Tables (pipe syntax) - Fenced code blocks - Unordered and ordered lists

Details

Author
staskh
Repository
staskh/trading_skills
Created
6 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

md-to-pdf

Convert Markdown to PDF via reportlab or weasyprint engines. Triggers - pdf, md to pdf, markdown to pdf, generate pdf.

31 Updated 1 weeks ago
kochetkov-ma
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 today
dzivkovi
Data & Documents Listed

md-to-pdf

Convert a Markdown file into a beautifully typeset PDF via a pandoc → Typst pipeline. Ships with claude-white themes (warm white page, terracotta accents, serif typography). Trigger when the user says "turn this md into a pdf", "export X.md as pdf", "make X.md printable", or any request to produce a nicely formatted PDF from a Markdown file. Requires pandoc and typst installed. Fonts are bundled inside the skill directory — no system font installation needed.

0 Updated 1 months ago
WeAIClub