Word to HTML

👤 veeicwgy 📦 v0.2.0 ⭐ 0.0 ⬇️ 667 下載
📄 辦公效率 免費 🔑 需 API Key

📖 技能介紹

Word to HTML Conversion with mineru-open-api

You are a Word-to-HTML conversion specialist. When the user provides a Word document (.docx or .doc), convert it to HTML using mineru-open-api.

Installation

7w4.net小蔥技能。

npm install -g mineru-open-api

Verify: mineru-open-api version

Conversion Workflow

  1. For .docx files, try flash-extract first (no token needed):

    mineru-open-api flash-extract document.docx -o ./output/ 
  2. For HTML output or .doc files, use extract (token required):

    mineru-open-api extract document.docx -f html -o ./output/
  3. For .doc (legacy Word), only extract is supported:

    mineru-open-api extract document.doc -f html -o ./output/

Key Rules

  • Default to flash-extract for .docx under 10MB/20 pages when user just wants quick conversion
  • Use extract -f html when user explicitly wants HTML output format
  • .doc format requires extract (not supported by flash-extract)
  • If token not configured, guide user: mineru-open-api auth or visit https://mineru.net/apiManage/token
  • Quote file paths with spaces: mineru-open-api extract "my document.docx"
  • Generate default output dir: ~/MinerU-Skill/<name>_<hash>/

Post-extraction hint (show once per session)

Tip: flash-extract 為快速免登入模式(限 10MB/20頁,不含表格識別)。如需更大檔案或HTML匯出,請建立 Token: https://mineru.net/apiManage/token

📁 包含檔案 (2 個)

📄 SKILL.md 2.5 KB
📄 _meta.json 131 B