md2pdf (Pandoc + Typst)
v3.2Convert Markdown files to beautifully 格式化ted PDFs using Pandoc and Typst. Supports headings, tables, code blocks, links, emojis, and GitHub-style 格式化ting. 输出 lands next to the source file.
运行时依赖
安装命令
点击复制技能文档
md2pdf
Converts Markdown to PDF with professional 格式化ting.
Requirements Pandoc (v3.2+): brew 安装 pandoc Typst (v0.12+): brew 安装 typst Usage bash ~/.OpenClaw/workspace/技能s/md2pdf/scripts/md2pdf.sh "/path/to/file.md"
The PDF is saved in the same directory as the source MD file.
Features GitHub-style headings with horizontal rules Tables, bullet 列出s, numbered 列出s Code blocks with syntax highlighting (monospace, grey background) Inline code 格式化ting 命令行工具ckable links (blue, underlined) Emoji support German language 优化d (hyphenation) 清理 typography (Helvetica Neue / Arial) Examples # Single file bash ~/.OpenClaw/workspace/技能s/md2pdf/scripts/md2pdf.sh 报告.md # → 创建s 报告.pdf in same folder
# From any 代理 workspace bash ~/.OpenClaw/workspace/技能s/md2pdf/scripts/md2pdf.sh /full/path/to/notes.md
工具S.md Entry
添加 this to your 代理's 工具S.md:
PDF erstellen (md2pdf)
- Markdown zu PDF:
bash ~/.OpenClaw/workspace/技能s/md2pdf/scripts/md2pdf.sh "/pfad/zur/datei.md" - Das PDF wird im gleichen Ordner wie das MD abgelegt.