md2pdf: Professional Markdown to PDF Converter for Openclaw

A high-performance conversion tool that turns Markdown into beautifully styled PDF documents with full support for Chinese characters and syntax highlighting.

franklu0819-lang
v1.0.0
Feb 22, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install markdown-pdf

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 markdown-pdf 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: Professional Markdown to PDF Converter?

The md2pdf skill is a specialized utility designed for developers and technical writers who need to generate professional documentation from plain text. It solves the common challenges of PDF generation within the Openclaw Skills ecosystem, such as complex LaTeX dependencies and broken multi-byte character rendering. By utilizing the WeasyPrint engine, it provides a lightweight, CSS-driven approach to document styling.

This skill is particularly valuable for creating technical manuals, project reports, and localized documentation. It ensures that every generated file maintains high-quality typography, professional table formatting, and accessible layouts without requiring manual intervention. For users of Openclaw Skills, it provides a seamless way to automate the transition from code-resident documentation to distribution-ready PDF files.

md2pdf: Professional Markdown to PDF Converter Use Cases

  • Creating shareable PDF versions of project READMEs and technical documentation.
  • Generating localized reports with perfect rendering of Chinese, Japanese, and Korean characters.
  • Automating the creation of e-books or whitepapers from Markdown source files.
  • Producing dark-themed code snippet portfolios for review or archival.
  • Batch converting entire directories of Markdown notes into a unified PDF library.

How md2pdf: Professional Markdown to PDF Converter Works

  1. The skill accepts a standard Markdown file as the primary input through a CLI command.
  2. It parses the Markdown content using high-fidelity libraries that support tables, fenced code blocks, and lists.
  3. A professional CSS stylesheet is applied to the content, defining the typography, color palette (including dark themes for code), and page margins.
  4. The rendering engine (WeasyPrint or Pandoc) processes the styled content and embeds the necessary Noto Sans CJK fonts.
  5. A final, optimized PDF document is generated and saved to the user's specified output directory.

md2pdf: Professional Markdown to PDF Converter Setup

To get started with this conversion tool for Openclaw Skills, ensure your environment is prepared with the following steps:

# Install the necessary Python rendering libraries
python3 -m pip install markdown weasyprint

# For Chinese character support, install the Noto Sans CJK fonts
yum install -y google-noto-sans-cjk-fonts

# Execute a basic conversion using the recommended script
bash scripts/convert-weasyprint.sh your-document.md output.pdf

md2pdf: Professional Markdown to PDF Converter Data Schema & Taxonomy

The skill manages document metadata and layout through a structured approach to file handling:

Component Type Description
Input Source Markdown (.md) Supports standard and extended Markdown syntax including tables and math.
Output Format PDF (.pdf) High-resolution, searchable PDF documents with embedded fonts.
Styling Layer CSS Custom styles defining #2c3e50 background for code and zebra-striping for tables.
Script Library Bash/Python Automated scripts located in the /scripts directory for various rendering engines.

md2pdf: Professional Markdown to PDF Converter Advanced Features

  • Custom CSS Integration: Users can modify the underlying Python script to inject bespoke branding, change font sizes, or update primary accent colors.
  • Batch Processing: Optimized for performance, allowing users to process hundreds of files simultaneously using GNU parallel within Openclaw Skills.
  • Multi-Engine Support: Offers a choice between the lightweight WeasyPrint engine for most tasks and the Pandoc engine for complex LaTeX-based requirements.
  • Automated Environment Sync: The conversion scripts automatically check for and install missing dependencies and fonts during the first execution.
  • Header and Footer Injection: Advanced users can customize the HTML template to add dynamic headers, footers, and watermarks to their documents.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*