markdown-to-pdf

v2026.09.24

Markdown→PDF via bundled renderer; memos, investor docs, briefs.

GitHub
安装命令
npx skhub add robin-liquidium/markdown-to-pdf
Markdown
SKILL.md

Markdown To PDF

Use this skill to render Markdown files into clean local PDFs with the bundled renderer in scripts/markdown_to_pdf.py.

Default behavior

  • Prefer a pageless-style PDF: one tall page sized to the content height.
  • Use A4 width unless the user asks for something else.
  • Keep the output visually minimal and text-first.

Workflow

  1. Confirm the input Markdown path and desired output PDF path.
  2. Run the bundled renderer.
  3. Use the default fit-to-content mode unless the user explicitly wants standard pages.
  4. Verify the PDF was created and report the output path.

Commands

  • Pageless-style default:
python3 <skill-path>/scripts/markdown_to_pdf.py INPUT.md OUTPUT.pdf
  • Standard A4 pages:
python3 <skill-path>/scripts/markdown_to_pdf.py INPUT.md OUTPUT.pdf --page-mode a4
  • Custom page size:
python3 <skill-path>/scripts/markdown_to_pdf.py INPUT.md OUTPUT.pdf --page-mode custom --page-width-mm 210 --page-height-mm 297

Notes

  • The renderer intentionally supports a narrow Markdown subset: headings, paragraphs, bullets, numbered lists, and simple pipe tables.
  • The bundled CSS in assets/default.css mirrors the visual direction for browser-based workflows, but the primary path is the local Python renderer.
  • If the user asks for a different layout, page size, or denser typography, override the defaults explicitly.
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

markdown-to-pdf

默认分支

main

最新提交

1488ad3

Tree SHA

5c42fa7