md-pdf

Solid

Собрать PDF из markdown-файла через scripts/md-pdf.py (Chrome headless, без зависимостей). Использовать когда пользователь просит "сделай/собери pdf", "конвертируй заметку/отчет/документ в pdf", "нужен pdf для отправки/печати" - для любых md-документов проекта (заметки, отчеты, саммари, КП, резюме). Для регулярного документа со своим оформлением (шапка, фото, контакты) - делать в проекте тонкий скилл-специализацию поверх этого скрипта, не править канон.

Data & Documents 8 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

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

Skill Content

# md-pdf Конвертация markdown -> PDF без зависимостей: md -> HTML (мини-конвертер и дефолтные стили внутри скрипта) -> печать установленным Chrome в headless-режиме. Скрипт-эталон - `scripts/md-pdf.py` (top-level папка `scripts/` в корне проекта). Не нужны pandoc/LaTeX/weasyprint - только Chrome. ## Когда применять - Нужно отдать md-контент наружу файлом: отчет заказчику, саммари встречи, КП, конспект на печать. - Проектный документ регулярно пересобирается в PDF (см. "Специализация"). ## Когда НЕ применять - Получателю подойдет сам markdown или текст в чате - PDF ради PDF не делать. - Документ со сложной версткой (многоколоночность, вложенные списки) - конвертер их не умеет; либо дорабатывать конвертер, либо собирать HTML вручную и печатать тем же Chrome. Простые GFM-таблицы (однострочные ячейки) он умеет. ## CLI ```bash python3 scripts/md-pdf.py note.md # note.pdf рядом с исходником python3 scripts/md-pdf.py note.md --out /path/x.pdf # свой путь python3 scripts/md-pdf.py note.md --css custom.css --title "Отчет" python3 scripts/md-pdf.py note.md --author "Имя" # /Author в метаданные PDF ``` Chrome ищется по стандартному пути macOS; иной путь - через переменную окружения `MD_PDF_CHROME`. ## Грабли (проверено практикой) - **Текст в Chrome-PDF не грепается** (глифовые индексы, не юникод). Верифицировать содержимое по сгенерированному HTML (функция `md_to_html`), а не по PDF; глазами PDF смотрит пользователь. Для таблиц - считать `<table>`/`<tr>...

Details

Author
dewil
Repository
dewil/claude-toolkit
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

markdown-to-pdf

Convert Markdown (.md) files to a polished PDF with ALL images preserved and scaled to the page. Use whenever the user asks to "save this markdown as a PDF", "convert README.md to pdf", "export the .md as a pdf", "turn these notes/docs into a PDF", or wants a PDF deliverable of any GitHub-flavored Markdown document (README, design doc, report, notes) — especially when it contains images or diagrams (remote or local), tables, code blocks, or a linked table of contents. Pipeline: pandoc (GFM → standalone HTML with embedded resources) → headless Chrome print-to-pdf with a GitHub-like print stylesheet → pypdf verification that every referenced image is embedded. Do NOT use for .tex → PDF (use a LaTeX toolchain) or for .docx work (use word-docx / tex2docx).

1 Updated 5 days ago
kennethkhoocy
Data & Documents Listed

markdown-to-pdf

Convert Markdown (.md) files to a polished PDF with ALL images preserved and scaled to the page. Use whenever the user asks to "save this markdown as a PDF", "convert README.md to pdf", "export the .md as a pdf", "turn these notes/docs into a PDF", or wants a PDF deliverable of any GitHub-flavored Markdown document (README, design doc, report, notes) — especially when it contains images or diagrams (remote or local), tables, code blocks, or a linked table of contents. Pipeline: pandoc (GFM → standalone HTML with embedded resources) → headless Chrome print-to-pdf with a GitHub-like print stylesheet → pypdf verification that every referenced image is embedded. Do NOT use for .tex → PDF (use a LaTeX toolchain) or for .docx work (use word-docx / tex2docx).

1 Updated 5 days ago
kennethkhoocy
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.

29 Updated 4 days ago
kochetkov-ma