md2doc for Openclaw

A versatile document converter that transforms Markdown files into professionally styled Word, PDF, and HTML documents with automatic formatting.

glory904649854
v1.0.1
Apr 7, 2026
0
743
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install md2doc

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 md2doc 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 md2doc?

md2doc is a specialized document generation utility designed to bridge the gap between plain text authoring and professional document delivery. As a featured tool within Openclaw Skills, it allows users to convert Markdown content into polished .docx, PDF, and HTML files while maintaining high aesthetic standards.

The skill is particularly valuable for developers and product managers who need to present technical content in traditional formats. It automatically handles complex elements like covers, tables of contents, headers, footers, and embedded images, making it an essential component for any automated documentation workflow using Openclaw Skills.

md2doc Use Cases

  • Creating branded technical reports from Markdown source files for corporate clients.
  • Generating Product Requirement Documents (PRDs) with specific visual themes like Product Red or Business Blue.
  • Converting academic notes into formal PDF documents with structured Chinese typesetting.
  • Automating the export of project documentation into multiple formats simultaneously during CI/CD processes.

How md2doc Works

  1. The user specifies the input Markdown file and selects one of the six available style templates.
  2. The skill parses the Markdown syntax to identify headers, tables, code blocks, and media references.
  3. Local images are validated, and remote images are automatically downloaded and cached for embedding.
  4. The python-docx engine generates a structured Word document applying the chosen CSS-like style theme.
  5. If the PDF flag is enabled, the system leverages local office suites to perform a high-fidelity conversion from Word to PDF.
  6. The final document paths are returned, allowing for immediate access or further automation within Openclaw Skills.

md2doc Setup

To integrate this tool into your environment, first copy the skill folder to your local directory:

# Linux or macOS
cp -r md2doc ~/.openclaw/skills/

# Windows
xcopy /E md2doc %USERPROFILE%\.openclaw\skills\

Next, install the required Python dependencies to ensure full functionality within Openclaw Skills:

pip install python-docx requests markdown beautifulsoup4 Pillow

md2doc Data Schema & Taxonomy

The skill organizes content based on the following structural mapping:

Element Technical Detail Visual Style
Headers H1 - H6 levels Hierarchy-based sizing using Microsoft YaHei
Body Text Paragraph blocks 11pt Songti (SimSun) for optimized readability
Tables Markdown grid Styled headers with background colors and borders
Code Blocks Fenced code Monospaced fonts with light gray background shading
Images Local & Remote Auto-centered with a maximum width of 6 inches

md2doc Advanced Features

  • Choose from 6 professional templates: Business Blue, Tech Grey, Minimal White, Product Red, Academic, and Default.
  • Automatic remote image embedding to ensure documents are fully self-contained.
  • Command-line interface support for batch processing and integration into Openclaw Skills automated scripts.
  • Support for simultaneous multi-format output (Word + PDF) in a single execution.
  • Specialized Chinese typesetting optimization for professional academic and business use.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*