Convert DOCX documents into clean HTML for publishing workflows with Mammoth
Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity.
Prerequisites
Node.js, DOCX files
Installation
Use the upstream install or setup path that matches your environment:
- Run make setup
- npm install mammoth
Requirements and caveats from upstream:
Basic usage or getting-started notes:
Other supported platforms
Extracted from upstream docs: https://raw.githubusercontent.com/mwilliamson/mammoth.js/HEAD/README.md