/install joe-markdown-to-docx
Markdown to DOCX Converter
Convert Markdown documents to professional Word DOCX format with full formatting preservation.
Features
- ✅ Complete Markdown support: Headers, paragraphs, lists, code blocks
- ✅ Tables: Full table support with alignment (left/center/right)
- ✅ Images: Local files, remote URLs, and data URLs
- ✅ Text formatting: Bold, italic, inline code, links
- ✅ Code blocks: Syntax-highlighted with borders and background
- ✅ GFM support: GitHub Flavored Markdown extensions
Installation
After installing this skill, run:
cd ~/.openclaw/workspace/skills/markdown-to-docx
npm install
All dependencies are pure JavaScript and work on Windows, macOS, and Linux.
Usage
Convert a Markdown file to DOCX:
node scripts/convert.js \x3Cinput.md> [output.docx]
Examples
# Convert with auto-generated output name
node scripts/convert.js document.md
# Specify output filename
node scripts/convert.js document.md report.docx
# Convert from current directory
node scripts/convert.js ./README.md ./README.docx
Supported Markdown Features
Text Formatting
- Bold:
**text**or__text__ - Italic:
*text*or_text_ Inline code:`code`- Links:
[text](url)
Tables
| Header 1 | Header 2 | Header 3 |
|:---------|:--------:|---------:|
| Left | Center | Right |
- Alignment:
:---(left),:---:(center),---:(right) - Header row with gray background
- Bordered cells with padding
Images


- Local images: Relative paths from Markdown file location
- Remote images: HTTP/HTTPS URLs (automatically downloaded)
- Data URLs: Base64-encoded images
- Auto-centered with appropriate sizing
Code Blocks
```javascript
function hello() {
console.log("Hello!");
}
```
- Monospace font (Consolas)
- Light gray background
- Border styling
Output Format
Generated DOCX files include:
- 1-inch margins on all sides
- Professional spacing and alignment
- Consistent styling throughout
- Editable in Microsoft Word, Google Docs, LibreOffice
Error Handling
- Missing images: Shows placeholder text instead of breaking
- Network errors: Graceful fallback with error message
- Invalid Markdown: Skips unsupported elements
Dependencies
Automatically installed via npm install:
docx: Word document generationunified,remark-parse,remark-gfm: Markdown parsingnode-fetch: Remote image downloading
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install joe-markdown-to-docx - 安装完成后,直接呼叫该 Skill 的名称或使用
/joe-markdown-to-docx触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Joe's Markdown to DOCX Converter 是什么?
Convert Markdown files to fully formatted Word DOCX documents with support for tables, images, code blocks, and GitHub Flavored Markdown features. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 289 次。
如何安装 Joe's Markdown to DOCX Converter?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install joe-markdown-to-docx」即可一键安装,无需额外配置。
Joe's Markdown to DOCX Converter 是免费的吗?
是的,Joe's Markdown to DOCX Converter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Joe's Markdown to DOCX Converter 支持哪些平台?
Joe's Markdown to DOCX Converter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Joe's Markdown to DOCX Converter?
由 zupeng(@joecao)开发并维护,当前版本 v1.0.0。