Markdown to DOCX Converter for Openclaw

A high-fidelity conversion engine that transforms Markdown documents into fully formatted, professional Word DOCX files.

joecao
v1.0.0
Mar 23, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install joe-markdown-to-docx

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 joe-markdown-to-docx 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 Markdown to DOCX Converter?

The Markdown to DOCX Converter is a robust utility designed for developers and technical writers who need to bridge the gap between plain-text documentation and corporate-ready Word documents. As part of the Openclaw Skills ecosystem, it ensures that your headers, lists, and complex formatting remain intact during the transition from MD to DOCX.

This skill goes beyond simple text conversion by offering deep support for GitHub Flavored Markdown (GFM). It handles technical nuances such as cell alignment in tables, syntax-highlighted code blocks with custom styling, and automated fetching of remote images, making it a powerful addition to any Openclaw Skills collection.

Markdown to DOCX Converter Use Cases

  • Creating professional reports from project README files.
  • Converting technical documentation for stakeholders who prefer Microsoft Word or Google Docs.
  • Generating editable legal or business documents from version-controlled Markdown source.
  • Batch processing Markdown notes into formatted office documents for distribution.

How Markdown to DOCX Converter Works

  1. The skill parses the input Markdown file using unified and remark-parse to create an Abstract Syntax Tree (AST).
  2. It identifies external assets, such as remote image URLs, and downloads them via node-fetch to embed them directly into the document.
  3. The engine maps Markdown elements (headers, tables, code blocks) to corresponding Word XML components using the docx library.
  4. It applies professional styling, including 1-inch margins and specific font families like Consolas for code.
  5. The finalized DOCX buffer is written to the local file system at the specified output path.

Markdown to DOCX Converter Setup

To integrate this into your environment, navigate to the skill directory and install the necessary dependencies:

cd ~/.openclaw/workspace/skills/markdown-to-docx
npm install

You can then run the conversion script via Node.js:

node scripts/convert.js document.md output.docx

Markdown to DOCX Converter Data Schema & Taxonomy

The skill processes Markdown input and generates standard Office Open XML (.docx) files.

Feature Preservation Detail
Tables Supports GFM alignment, borders, and header backgrounds
Images Local relative paths, HTTPS URLs, and Base64 Data URLs
Code Blocks Monospace font (Consolas) with light gray background styling
Metadata Preserves document structure from H1 through H6 headings

Markdown to DOCX Converter Advanced Features

  • Automatic Image Fetching: Downloads and embeds remote web images during the conversion process.
  • Graceful Error Fallbacks: Uses placeholder text for missing images to prevent build failures.
  • GFM Extension Support: Includes advanced Markdown features like task lists and complex table structures.
  • Cross-Platform Compatibility: Optimized to run seamlessly across Windows, macOS, and Linux environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*