{"categories":[{"label":"HTML","url":"https://skillfed.io/packages/category/text-processing-markup-html"}],"enrichment":{"capability":"Converts Microsoft Word .docx documents to clean HTML or Markdown, using document styles to generate semantic markup rather than attempting to replicate visual formatting.","skillfed_tags":["document-conversion","cli-tool"],"use_cases":["Batch convert Word documents to HTML for web publishing or content management systems.","Extract semantic structure from styled Word documents for downstream processing or archival.","Build document pipelines that map custom Word styles to specific HTML classes or elements.","Preserve document content and structure when migrating from Word to web-based authoring platforms.","Extract raw text from .docx files while ignoring all formatting and styling."],"what_it_does":"Mammoth is a .docx-to-HTML converter designed to produce clean, semantic markup from Word documents created by Microsoft Word, Google Docs, or LibreOffice. Rather than attempting to replicate visual styling, it interprets document structure\u2014converting a paragraph styled as \"Heading 1\" to an h1 element, for example\u2014and ignores formatting details like fonts and colors. This approach works well for documents that use styles semantically but may lose fidelity on complex layouts.\n\nThe package supports headings, lists, tables, footnotes, images, text formatting (bold, italic, strikethrough, superscript, subscript), links, comments, and custom style mappings. It can be used as a CLI tool or imported as a library. A critical caveat: Mammoth performs no sanitization of source documents, so it must be used carefully with untrusted input. The library also includes text extraction and experimental Markdown output (deprecated in favor of generating HTML first).","worth_installing":"Yes. Mammoth is actively maintained, has low install friction, carries a permissive license, and solves a well-defined problem\u2014converting .docx to clean HTML using semantic information. It is suitable for most document conversion workflows, but avoid it for untrusted input without additional sanitization and be aware that complex document layouts may not convert perfectly."},"id":"mammoth","links":{"html":"https://skillfed.io/packages/mammoth","md":"https://skillfed.io/packages/mammoth.md","pypi":"https://pypi.org/project/mammoth/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-09","license_spdx":null,"license_treatment":"permissive","name":"mammoth","python_support":"supports_current","summary":"Convert Word documents from docx to simple and clean HTML and Markdown"},"popularity":{"monthly_downloads":16076406,"position":1163,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.12.1"}
