返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
d

docx-to-md

将Word文档(.docx)转换为Markdown格式并提取图片。使用此技能当用户需要:(1)将Word文档转换为Markdown格式,(2)从Word文档中提取图片,(3)同时完成文档格式转换和图片提取任务。

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
827
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

docx-to-md

# docx-to-md 将Word文档(.docx)转换为Markdown格式,并提取文档中的图片到指定目录。 ## 使用方法 运行脚本进行转换: ```python import sys sys.path.insert(0, '<skill目录>/scripts') from docx_to_md import docx_to_md docx_to_md('输入文件.docx', '输出目录') ``` 或在命令行运行(需手动处理参数转义): ```bash python <skill路径>/scripts/docx_to_md.py "文件.docx" ``` ## 参数 - `input_file`: Word文档路径(.docx) - `output_dir`: 输出目录(可选,默认创建同名_output文件夹) ## 输出 - `*.md`: 转换后的Markdown文件 - `image_*.png/jpg/gif`: 提取的图片文件 ## 转换规则 | Word格式 | Markdown | |----------|----------| | 标题1 | # 标题 | | 标题2 | ## 标题 | | 标题3 | ### 标题 | | 标题4 | #### 标题 | | 无序列表 | - 内容 | | 有序列表 | 1. 内容 | | 表格 | Markdown表格 | | 图片 | ![](图片) | ## 依赖 - Python 3.7+ - python-docx ```bash pip install python-docx ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 docx-to-md-1776295872 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 docx-to-md-1776295872 技能

通过命令行安装

skillhub install docx-to-md-1776295872

下载

⬇ 下载 docx-to-md v1.0.0(免费)

文件大小: 2.94 KB | 发布时间: 2026-4-16 16:17

v1.0.0 最新 2026-4-16 16:17
Initial release of docx-to-md.

- Convert Word (.docx) documents to Markdown format.
- Extract images from Word documents to a specified directory.
- Supports headings, lists, tables, and image conversion.
- Provides both Python function and command-line usage.
- Includes detailed usage instructions and conversion rules.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部