md2word-cn

将 Markdown 文档转换为 Word 文档,专为中文文档设计。支持完整的 Markdown 语法,字体统一使用仿宋。适用于周报、日报、报告等中文办公文档的转换。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "md2word-cn" with this command: npx skills add andyrong/md2word-cn

md2word-cn

专为中文文档设计的 Markdown 转 Word 转换器。

快速开始

# 安装依赖
pip3 install python-docx

# 转换文件
python3 <skill>/scripts/md2word.py <输入.md> <输出.docx>

支持的 Markdown 语法

语法效果
# 一级标题居中标题,22pt,加粗
## 二级标题16pt,加粗
### 三级标题14pt,加粗
#### 四级标题12pt,加粗
**加粗**加粗
*斜体*斜体
~~删除线~~删除线
`代码`行内代码
```代码块```代码块
[链接](url)链接
1. 有序列表有序列表(手动编号,避免重复)
- 无序列表无序列表
> 引用引用
---水平分割线

字体格式

  • 正文:仿宋 12pt
  • 一级标题:仿宋 22pt,居中加粗
  • 二级标题:仿宋 16pt 加粗
  • 三级标题:仿宋 14pt 加粗
  • 四级标题:仿宋 12pt 加粗

使用示例

# 转换周报
python3 ~/.agents/skills/md2word-cn/scripts/md2word.py weekly_report.md weekly_report.docx

# 转换报告
python3 ~/.agents/skills/md2word-cn/scripts/md2word.py report.md report.docx

脚本

  • scripts/md2word.py - 主转换脚本

注意事项

  • 有序列表使用手动编号,避免 Word 自动编号导致的重复
  • 代码块样式为灰色背景
  • 链接自动添加下划线

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Tsconfig Validator

Validate and lint tsconfig.json files for common mistakes, conflicting compiler options, strictness gaps, and best practices. Use when asked to lint, validat...

Registry SourceRecently Updated
General

API Diff

Compare two OpenAPI 3.x or Swagger 2.0 specs and generate a changelog of breaking and non-breaking changes. Detect removed endpoints, new required parameters...

Registry SourceRecently Updated
General

Eslint Flat Config Validator

Validate ESLint v9+ flat config files (JSON-exported) for structural correctness, language options, rules configuration, plugin hygiene, file patterns, and b...

Registry SourceRecently Updated
General

Migration Safety Checker

Check database migrations for safety — detect data loss risks, locking operations, backward compatibility issues, and deployment ordering problems across SQL...

Registry SourceRecently Updated