TTokenySpace
返回 Skills 列表

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...

#中文
0

安装到 Tokeny(自动)

下载 ZIP
安装"md-2-word"技能
技能信息:
- 名称: Markdown to Word Converter
- 标识: md-2-word
- 描述: 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...
- 版本: 1.0.0
下载地址:
https://www.tokeny.space/api/skills/md-2-word/download
继续

复制上方内容到 Tokeny 客户端并在会话中发送即可自动安装;也可直接 下载 ZIP并拖动到技能窗口安装。

SKILL.md

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
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:

  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

评论

加载中…