md-to-word

Convert Markdown content into a Word-compatible single-file HTML document with a .doc extension.

9|1|Updated Jul 17, 2025
One-click install
npx skills add https://github.com/MengXi-Studio/uni-router --skill md-to-word-mengxi-studio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-to-word
Source: https://github.com/MengXi-Studio/uni-router/tree/main/.trae/skills/md-to-word
Command: npx skills add https://github.com/MengXi-Studio/uni-router --skill md-to-word-mengxi-studio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

将 Markdown 文件转换为 Word 兼容的 HTML(.doc)输出,确保在 Word 中可直接打开并保留完整排版,同时兼容微信公众号平台的导出与发布要求。

Core Features & Use Cases

  • 将 Markdown 转换为 Word 兼容的单文件 HTML(.doc),保留标题、代码、表格、列表等排版。
  • 适用于需要将文档从 Markdown 直接产出可在 Word 打开、或可发布到公众号的场景。
  • Use Case: 你有大量 Markdown 课程笔记需要输出为 Word 可编辑文档并适配公众号排版。

Quick Start

执行转换,将指定的 Markdown 文件输出为同名的 .doc 文件并保留排版。

Frequently Asked Questions about md-to-word

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown to Word while preserving formatting like headings and tables?

To convert Markdown to Word while preserving formatting, this tool transforms Markdown content into a Word-compatible HTML document with inline styling, ensuring headings, code blocks, tables, and lists remain intact when opened in Word.

Can I use a converted Word document for WeChat publishing?

Yes, the converted Word document is compatible with WeChat publishing. The tool generates a self-contained HTML file that meets WeChat platform export and distribution requirements while maintaining consistent cross-platform layout.

What is the best way to turn Markdown course notes into an editable Word file?

The best way to turn Markdown course notes into an editable Word file is using a conversion tool that outputs a single-file .doc document with strict inline styling, allowing direct editing in Word without losing original layout.

Do I need any external dependencies or components to convert Markdown to a .doc file?

No external dependencies or components are required to convert Markdown to a .doc file. The process produces a self-contained single-file output, ensuring cross-platform layout consistency without needing additional libraries.

Why does my Markdown conversion lose formatting when opened in Word?

Markdown conversion loses formatting in Word when strict inline styling is not applied. This tool prevents layout loss by generating a Word-compatible HTML document with complete inline styles, ensuring the formatting is fully preserved.