docx-to-md

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docx-to-md" with this command: npx skills add ooliuhao/docx-to-md

docx-to-md

将Word文档(.docx)转换为Markdown格式,并提取文档中的图片到指定目录。

使用方法

运行脚本进行转换:

import sys
sys.path.insert(0, '<skill目录>/scripts')
from docx_to_md import docx_to_md

docx_to_md('输入文件.docx', '输出目录')

或在命令行运行(需手动处理参数转义):

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
pip install python-docx

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated