md2pdf for Openclaw

A high-performance CLI tool for converting Markdown documents into beautifully formatted PDFs using Pandoc and Typst.

hansschinkenwurst78-dev
v1.0.0
Mar 30, 2026
0
913
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-md2pdf

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-md2pdf using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is md2pdf?

md2pdf is a powerful utility designed for developers and AI agents to transform standard Markdown files into polished, professional-grade PDF documents. By leveraging the combined power of Pandoc and Typst, this addition to the Openclaw Skills library ensures high-fidelity rendering of headings, code blocks, and complex tables. It is particularly optimized for technical documentation, providing clean typography and structural integrity out of the box.

Whether you are generating reports, technical documentation, or project summaries, md2pdf handles the heavy lifting of layout and styling automatically. It incorporates German language optimization and sleek font choices like Helvetica Neue, making it an essential tool for creating distribution-ready files directly from your agent workspace.

md2pdf Use Cases

  • Converting technical documentation or README files into shareable PDF manuals.
  • Automating report generation within an AI agent workflow using Openclaw Skills.
  • Transforming project outlines or meeting notes into clean, printable documents.
  • Generating professional summaries from markdown-based data for client delivery.

How md2pdf Works

  1. The user or AI agent triggers the shell script by providing the absolute or relative path to a Markdown file.
  2. The script utilizes Pandoc to parse the Markdown structure and content into a compatible intermediate format.
  3. Typst acts as the formatting engine to apply professional styling, including syntax highlighting for code blocks and clickable links.
  4. The final PDF is rendered and saved in the same directory as the source Markdown file for immediate access.

md2pdf Setup

To use this tool within the ecosystem of Openclaw Skills, you must ensure the underlying rendering engines are installed on your system:

# Install Pandoc (v3.2+)
brew install pandoc

# Install Typst (v0.12+)
brew install typst

No further configuration is required; the script handles the bridging between these tools and your Markdown content.

md2pdf Data Schema & Taxonomy

The skill operates on a straightforward file-to-file conversion logic. It does not require a database but relies on the filesystem structure.

Component Detail
Input Standard .md file path
Output Generated .pdf file in the source directory
Rendering Engine Pandoc 3.2+ & Typst 0.12+
Stylesheet Integrated GitHub-style formatting
Typography Helvetica Neue / Arial fallback

md2pdf Advanced Features

  • Full support for GitHub Flavored Markdown including tables and task lists.
  • Syntax highlighting for code blocks with monospace fonts and distinct backgrounds.
  • Interactive PDF features including clickable blue-underlined links.
  • Native emoji support for modern technical documentation.
  • Optimized for multi-lingual support, including German hyphenation rules.
  • Seamless integration into agent TOOLS.md configurations for automated workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*