Convert Markdown text to DOCX, PPTX, XLSX, PDF, PNG, SVG, HTML, IPYNB, MD, CSV, JSON, JSONL, XML files, and extract code blocks in Markdown to Python, Bash,JS and etc files.
文档
Markdown to Word Converter
试用Convert Markdown files to formatted Word documents (.docx). Use when the user asks to convert, export, or save a Markdown file as Word/DOCX format. Triggers...
它能做什么
Convert Markdown files to formatted Word documents (.docx). Use when the user asks to convert, export, or save a Markdown file as Word/DOCX format. Triggers on phrases like "convert md to word", "export to docx", "save as word document", "markdown转word", "转成word文档".
技能文档
Markdown to Word Converter
Convert Markdown files to professionally formatted Word documents (.docx).
Quick Start
python scripts/md_to_word.py [output.docx]
Parameters:
input.md- Path to the source Markdown file (required)output.docx- Path for the output Word file (optional, defaults to input name with .docx extension)
Example:
python scripts/md_to_word.py report.md report.docx
Supported Markdown Features
| Feature | Format |
|---|---|
| Headers (#, ##, ###) | 18pt/14pt/12pt bold, 微软雅黑 |
| Bold (text) | Bold formatting |
| Tables | Bordered tables with blue header background |
| Code blocks (```) | Monospace font (Consolas), gray background, indented |
Inline code (code) | Monospace font (Consolas) within paragraph |
| Bullet lists (-, *) | Bullet points |
| Numbered lists (1., 2.) | Numbered items |
| Blockquotes (>) | Italic, indented text |
| Horizontal rules (---) | Paragraph spacing |
Usage in Conversation
When user wants to convert a Markdown file:
- Identify the file: Confirm the Markdown file path
- Run the conversion: Execute the script
- Confirm output: Report file location and size
Example prompt handling:
- "Convert this md file to word" → Run with provided file path
- "Export as docx" → Convert current/mentioned file
- "把调研提纲转成word" → Convert the mentioned file
Script Location
The conversion script is located at:
scripts/md_to_word.py
Requirements
- Python 3.6+
- python-docx library
Install if needed:
pip install python-docx
相关技能
Use `aigroup-mdtoword-mcp` to convert Markdown into `.docx`. Route Markdown file conversion, generated Markdown conversion, table-to-Markdown preprocessing,...
将 PDF 和图片转换为 10 种文档或数据格式,并提供 OCR 与版面分析控制。
通过 md2wechat CLI 把 Markdown 转为微信公众号 HTML、封面、信息图和图文帖。
让 Markdown 在 GitHub、MDX、Pandoc、文档站、Slack、Notion 等解析器中正确渲染,并定位修复具体损坏位置。
Convert unstructured documents into LLM-ready structured data. Supports PDF, Word, PPT, and images; extracts paragraphs, formulas, tables, charts, and other...