Overview of Mammoth .docx to HTML conversion
masterMammoth converts .docx documents (from Microsoft Word, Google Docs, LibreOffice, etc.) into clean, semantic HTML.
Instead of attempting to replicate exact visual styling (like font size or color), Mammoth focuses on semantic information. For example, a paragraph styled as Heading 1 in Word is converted to an <h1> element in HTML. This approach produces simpler and cleaner HTML code.
Supported features include:
- Headings
- Lists
- Tables (formatting like borders is ignored, but text formatting is preserved)
- Footnotes and endnotes
- Images
- Text styles: Bold, italics, underlines, strikethrough, superscript, and subscript
- Links
- Line breaks
- Text boxes (contents are treated as a separate paragraph following the text box)
- Comments
- Custom style mapping (e.g., mapping a custom Word style
WarningHeadingto<h1 class="warning">)