md-to-pdf
Convert markdown files to clean, formatted PDFs using reportlab
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- md-to-pdf
- metadata
- { "openclaw": { "emoji": "?", "requires": { "bins": [ "uv" ] } } }
- description
- Convert markdown files to clean, formatted PDFs using reportlab
02 资源文件 2
- 参考文档_meta.json268 B
- 脚本scripts/md-to-pdf.py21.4 KB
03 SKILL.md 正文
Markdown to PDF
Convert markdown documents to professional, clean PDFs with proper formatting.
Usage
# 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
Features
- Headers: H1-H6 with hierarchical styling
- Text formatting: Bold, italic, inline code
- Lists: Bullet lists, numbered lists, task lists
- Code blocks: Syntax highlighting with background
- Tables: Full table support with headers
- Links: Clickable hyperlinks
- Horizontal rules: Visual section dividers
- YAML frontmatter: Automatically skipped
- Special characters: Emojis, Unicode symbols
- Page numbers: Automatic footer with page numbers
- Professional styling: Clean, readable output
Options
-o, --output: Output PDF file path (default: input_filename.pdf)-v, --verbose: Print detailed processing information
Supported Markdown Elements
| 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 |
| Links | [text](url) |
✅ |
| Horizontal rules | --- or *** |
✅ |
| Blockquotes | > quote |
✅ |
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.