markdown-to-pdf

Solid

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 229 stars 56 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
79
Recency 20%
100
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
3 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

markitdown

Convert any document to Markdown with Microsoft's `markitdown` CLI — PDF, Word, Excel, PowerPoint, HTML, CSV, JSON, XML, ZIP, EPub, images (OCR/EXIF), audio (transcription), and YouTube URLs. Use whenever the user wants to extract text from a binary document, transcribe audio, OCR an image, scrape a YouTube transcript, or pre-process a file for an LLM context window — even when they just say "convert this pdf", "what's in this docx", "transcribe this mp3", or "get the text out of this".

0 Updated yesterday
coroboros
Data & Documents Listed

markdown-to-docx

Use this skill whenever the user wants to convert a Markdown file to a Word document (.docx). Triggers include: 'convert markdown to Word', 'convert .md to .docx', 'render mermaid to Word', 'generate Word doc from markdown', 'export markdown as docx', or any request to turn a .md file into a .docx. Use this skill even if the user just says 'make a Word doc from this markdown' or 'convert this to Word'. This skill handles: (1) native Word TOC placed after the document header block (H1 title + metadata + '---' separator), (2) Mermaid diagram blocks rendered to high-resolution PNG and embedded as images, and (3) tables formatted with colored header rows, alternating row shading, and borders. Do NOT use for PDFs, Google Docs, spreadsheets, or general DOCX editing unrelated to Markdown conversion.

0 Updated 3 days ago
desmondc9
Data & Documents Listed

pdf-to-md

Convert any PDF (or DOCX/PPTX/XLSX/image) to clean Markdown. For scientific papers, produce the canonical paper-to-md bundle (Markdown plus section_audit.json and article.json) using the remote OCR API when an OCR key is available, or LiteParse v2 locally when it is not. For any non-paper PDF, defer to a fast, local, no-API-key LiteParse v2 conversion. Use when turning a PDF or manuscript into Markdown, extracting article structure, or preparing input for csag-extraction.

3 Updated today
fmschulz
Data & Documents Solid

pdf-generation

Professional PDF documentation generation. Convert Markdown to PDF with custom templates, styling, table of contents, cross-references, and optimized output for print and archival.

1,034 Updated today
a5c-ai
Data & Documents Listed

markdown-to-styled-pdf

Generate a professionally styled PDF document from Markdown content with custom fonts, headers, and page numbers.

0 Updated 6 days ago
iterationlayer