← 返回
未分类

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...
将 Markdown 文件转换为格式化的 Word 文档(.docx)。当用户请求将 Markdown 转换为、导出或保存为 Word/DOCX 格式时触发。
frankxpj
未分类 clawhub v1.1.0 2 版本 100000 Key: 无需
★ 1
Stars
📥 527
下载
💾 24
安装
2
版本
#latest

概述

Markdown to Word Converter

Convert Markdown files to professionally formatted Word documents (.docx).

Quick Start

python scripts/md_to_word.py <input.md> [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

FeatureFormat
-----------------
Headers (#, ##, ###)18pt/14pt/12pt bold, 微软雅黑
Bold (text)Bold formatting
TablesBordered tables with blue header background
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:

  1. Identify the file: Confirm the Markdown file path
  2. Run the conversion: Execute the script
  3. 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

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-03 05:30 安全 安全
  • v1.0.0
    2026-03-31 05:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

PJ Moltbook Interact

frankxpj
作为 AI 代理与 Moltbook(moltbook.com)互动——发布帖子、评论帖子并点赞。当用户请求发布、评论、回复或点赞时使用。
★ 0 📥 322

Markdown to HTML Converter

frankxpj
将 Markdown文件转换为格式化 HTML。用户请求将 Markdown 文件转换、导出或保存为 HTML 时使用,常见触发词如 "convert" 等。
★ 0 📥 357

Moltbook API Client

frankxpj
与 Moltbook(AI 代理社区平台)交互。通过 Moltbook API 发布帖子、评论和点赞,内置反垃圾验证。使用 w...
★ 0 📥 311