← 返回 Skills 市场
hansschinkenwurst78-dev

md2pdf (Pandoc + Typst)

作者 hansschinkenwurst78-dev · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
182
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-md2pdf
功能描述
Convert Markdown files to beautifully formatted PDFs using Pandoc and Typst. Supports headings, tables, code blocks, links, emojis, and GitHub-style formatti...
使用说明 (SKILL.md)

md2pdf

Converts Markdown to PDF with professional formatting.

Requirements

  • Pandoc (v3.2+): brew install pandoc
  • Typst (v0.12+): brew install typst

Usage

bash ~/.openclaw/workspace/skills/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 lists, numbered lists
  • Code blocks with syntax highlighting (monospace, grey background)
  • Inline code formatting
  • Clickable links (blue, underlined)
  • Emoji support
  • German language optimized (hyphenation)
  • Clean typography (Helvetica Neue / Arial)

Examples

# Single file
bash ~/.openclaw/workspace/skills/md2pdf/scripts/md2pdf.sh report.md
# → creates report.pdf in same folder

# From any agent workspace
bash ~/.openclaw/workspace/skills/md2pdf/scripts/md2pdf.sh /full/path/to/notes.md

TOOLS.md Entry

Add this to your agent's TOOLS.md:

## PDF erstellen (md2pdf)
- Markdown zu PDF: `bash ~/.openclaw/workspace/skills/md2pdf/scripts/md2pdf.sh "/pfad/zur/datei.md"`
- Das PDF wird im gleichen Ordner wie das MD abgelegt.
安全使用建议
This skill appears to do what it claims: convert a provided Markdown file into a PDF using Pandoc and Typst. Before installing or running it: (1) ensure Pandoc and Typst are installed from official sources (brew or official releases) because the registry metadata does not declare them; (2) run the script on a copy of sensitive documents or in a safe folder until you confirm it behaves as expected—the script creates temporary dot-prefixed .typ files in the same folder and deletes them; (3) be aware that Typst's --root is set to the input directory, so any relative includes or images in that directory may be read during compile (this is normal for rendering but worth noting for sensitive directories). If you need the registry to enforce prerequisites, ask the publisher to declare pandoc/typst as required binaries in the skill metadata.
功能分析
Type: OpenClaw Skill Name: openclaw-md2pdf Version: 1.0.0 The skill bundle provides a straightforward utility for converting Markdown files to PDF using Pandoc and Typst. The core logic in `scripts/md2pdf.sh` performs standard file operations, template generation, and command-line tool invocation without any signs of data exfiltration, unauthorized network access, or malicious intent. The instructions in `SKILL.md` and `README.md` are consistent with the script's functionality.
能力评估
Purpose & Capability
Name/description match the provided script and README. The SKILL.md correctly documents that Pandoc and Typst are required, and the script uses both; however, the registry metadata lists no required binaries—this is a mild inconsistency (the skill will fail if pandoc/typst are not installed but the registry advertises none).
Instruction Scope
The runtime instructions and the included bash script stay within scope: they take a user-supplied Markdown file, convert it to an intermediate Typst file, wrap it with a styling template, compile to PDF, and clean up temporary files. The script only reads the supplied path and writes temp files alongside the source; it performs no network calls, no reads of unrelated files or env vars, and no unexpected outbound communication. Note: typst is invoked with --root set to the input directory, so relative includes/resources in that directory may be used during compilation (this is expected for document rendering).
Install Mechanism
No install spec (instruction-only plus an included script). This is the lower-risk model: nothing is downloaded or installed automatically by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. The script runs using local binaries (pandoc, typst) and operates on the file provided by the user—no secret access is requested or required.
Persistence & Privilege
The skill does not request permanent/always-on presence (always:false) and does not modify other skills or system-wide settings. Autonomous invocation is allowed by default but is not combined with broad access or suspicious behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-md2pdf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-md2pdf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Markdown to PDF with Pandoc + Typst, GitHub-style formatting, emoji support, horizontalrule fix
元数据
Slug openclaw-md2pdf
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

md2pdf (Pandoc + Typst) 是什么?

Convert Markdown files to beautifully formatted PDFs using Pandoc and Typst. Supports headings, tables, code blocks, links, emojis, and GitHub-style formatti... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 182 次。

如何安装 md2pdf (Pandoc + Typst)?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-md2pdf」即可一键安装,无需额外配置。

md2pdf (Pandoc + Typst) 是免费的吗?

是的,md2pdf (Pandoc + Typst) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

md2pdf (Pandoc + Typst) 支持哪些平台?

md2pdf (Pandoc + Typst) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 md2pdf (Pandoc + Typst)?

由 hansschinkenwurst78-dev(@hansschinkenwurst78-dev)开发并维护,当前版本 v1.0.0。

💬 留言讨论