安全扫描
OpenClaw
安全
high confidenceFiles and runtime instructions align with a Markdown→DOCX converter; no unrelated credentials, installers, or hidden endpoints were found, but review of dependencies and caution with remote images is recommended.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.0.02026/3/23
● 无害
安装命令
点击复制官方npx clawhub@latest install joe-markdown-to-docx
🇨🇳 镜像加速npx clawhub@latest install joe-markdown-to-docx --registry https://cn.longxiaskill.com
技能文档
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 [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
Tables
Header 1 Header 2 Header 3 Left Center Right
- Alignment: :---
(left),:---:(center),---:(right) - Header row with gray background
- Bordered cells with padding
Images
!Alt text
!Remote
- 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 generation
unified, remark-parse, remark-gfm: Markdown parsing
node-fetch`: Remote image downloading
数据来源:ClawHub ↗ · 中文优化:龙虾技能库