Convert markdown files to clean, formatted PDFs using reportlab
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install md-2-pdf或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install md-2-pdf⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/md-2-pdf/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: md-to-pdf description: Convert markdown files to clean, formatted PDFs using reportlab metadata: {"openclaw":{"emoji":"📄","requires":{"bins":["uv"]}}} ---
Convert markdown documents to professional, clean PDFs with proper formatting.
# Basic usage
uv run scripts/md-to-pdf.py input.md
# Specify output
uv run scripts/md-to-pdf.py input.md -o output.pdf
uv run scripts/md-to-pdf.py input.md --output my-report.pdf
# Verbose mode
uv run scripts/md-to-pdf.py input.md -v
-o, --output: Output PDF file path (default: input_filename.pdf)-v, --verbose: Print detailed processing information| Element | Syntax | Status | |---------|--------|--------| | Headers | # H1 to ###### H6 | ✅ | | Bold | text or __text__ | ✅ | | Italic | text or _text_ | ✅ | | Inline code | ` code ` | ✅ | | Code blocks | ``` | ✅ | | Bullet lists | - item or * item | ✅ | | Numbered lists | 1. item | ✅ | | Task lists | - [x] done | ✅ | | Tables | | col | col | | ✅ | | Links | text | ✅ | | Horizontal rules | --- or *** | ✅ | | Blockquotes | > quote | ✅ |
安装 md-2-pdf 后,可以对 AI 说这些话来触发它
Help me get started with md-2-pdf
Explains what md-2-pdf does, walks through the setup, and runs a quick demo based on your current project
Use md-2-pdf to convert markdown files to clean, formatted PDFs using reportlab
Invokes md-2-pdf with the right parameters and returns the result directly in the conversation
What can I do with md-2-pdf in my documents & notes workflow?
Lists the top use cases for md-2-pdf, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/md-2-pdf/ 目录(个人级,所有项目可用),或 .claude/skills/md-2-pdf/(项目级)。重启 AI 客户端后,用 /md-2-pdf 主动调用,或让 AI 根据上下文自动发现并使用。
md-2-pdf 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
md-2-pdf 可免费安装使用。请查阅仓库了解许可证信息。
Convert markdown files to clean, formatted PDFs using reportlab
md-2-pdf 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using md-2-pdf
Identifies repetitive steps in your workflow and sets up md-2-pdf to handle them automatically