← Back to Skills Marketplace
hansschinkenwurst78-dev

md2pdf (Pandoc + Typst)

by hansschinkenwurst78-dev · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
182
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-md2pdf
Description
Convert Markdown files to beautifully formatted PDFs using Pandoc and Typst. Supports headings, tables, code blocks, links, emojis, and GitHub-style formatti...
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-md2pdf
  3. After installation, invoke the skill by name or use /openclaw-md2pdf
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Markdown to PDF with Pandoc + Typst, GitHub-style formatting, emoji support, horizontalrule fix
Metadata
Slug openclaw-md2pdf
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 182 downloads so far.

How do I install md2pdf (Pandoc + Typst)?

Run "/install openclaw-md2pdf" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is md2pdf (Pandoc + Typst) free?

Yes, md2pdf (Pandoc + Typst) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does md2pdf (Pandoc + Typst) support?

md2pdf (Pandoc + Typst) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created md2pdf (Pandoc + Typst)?

It is built and maintained by hansschinkenwurst78-dev (@hansschinkenwurst78-dev); the current version is v1.0.0.

💬 Comments