word2html
Skill8 starsChanged 3 months agoMITView on GitHub
Convert Word (.docx) files to standalone HTML with tables, images, and math formulas. Handles merged cells (colspan/rowspan), embedded images, bold/italic/underline, and OMML math via MathJax.
- Installs packages
In this repository32 other files it gives its agents.
- ai-genSkill
- any2mdSkill
- assignment-wordSkill
- cheatsheatSkill
- claude2antiSkill
- claude2codexSkill
- codex2claudeSkill
- fincomp-deckSkill
- github-trendingSkill
- git-pushSkill
- html2mdSkill
- html2pdfSkill
- html2texSkill
- html-slidesSkill
- img-readerSkill
- latex-beamerSkill
- markitdownSkill
- md2docxSkill
- md2texSkill
- mergeSkill
- notesSkill
- paper-html-onepageSkill
- paper-reproSkill
- pdf2wordSkill
- pdf-readerSkill
- posterSkill
- repo-docsSkill
- repo-docs-zhSkill
- resume-builderSkill
- web-search-fallbackSkill
- word2mdSkill
- word2pdfSkill
The file
Files
Word to HTML Converter
Convert Word (.docx) files to a self-contained HTML page with proper table rendering, images, and math formulas.
When to Use
- User says "word2html", "docx转html", "word to html"
- User needs to view/docx content in a browser-friendly format
- User wants to preserve tables with merged cells and embedded images
How to Use
python ~/.claude/skills/word2html/word2html.py "<input.docx>" ["<output.html>"]- input.docx (required): Path to the Word file
- output.html (optional): Output file path. Defaults to same name with
.htmlextension
Examples
# Convert (output = input_name.html)
python ~/.claude/skills/word2html/word2html.py "document.docx"
# Convert with specific output path
python ~/.claude/skills/word2html/word2html.py "document.docx" "output.html"Features
| Feature | Details |
| Tables | Full support including merged cells (colspan/rowspan) |
| Images | Extracted to images/ folder, embedded as <img> tags |
| Math | OMML formulas converted to LaTeX, rendered via MathJax CDN |
| Formatting | Bold, italic, underline, strikethrough |
| Styling | Built-in CSS with Chinese fonts, responsive layout |
Dependencies
python-docxmust be installed:python -m pip install python-docx- MathJax loads from CDN (requires internet for math rendering)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

