WordPress plugin intelligence profile

Mammoth .docx converter

Mammoth converts semantically marked up .docx documents to simple and clean HTML, allowing pasting from Word and Google Docs without the usual mess.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.9
Current version1.22.0
WordPress coverageTested up to WordPress 6.9
Minimum stackWP 4.0 · PHP —
Directory statusactive
Last directory update12 Mar 20267mo ago
Active installations20K+Adoption metric — not a quality score
WordPress.org rating4.8 / 5 from 62 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Mammoth .docx converter version 1.22.0 as active, updated 7mo ago and tested up to WordPress 6.9.

Overview

About this plugin

docx documents, such as those created by Microsoft Word, Google Docs and LibreOffice, and convert them to HTML. Mammoth aims to produce simple and clean HTML by using semantic information in the document, and ignoring other details. ) of the heading.

This allows you to paste from Word documents without the usual mess.

docx and the structure of HTML, meaning that the conversion is unlikely to be perfect for more complicated documents. Mammoth works best if you only use styles to semantically mark up your document.

The following features are currently supported:

-

Headings.

-

Lists.

-

Tables. The formatting of the table itself, such as borders, is currently ignored, but the formatting of the text is treated the same as in the rest of the document.

-

Footnotes and endnotes.

-

Images.

-

Bold, italics, superscript and subscript.

-

Links.

-

Text boxes. The contents of the text box are treated as a separate paragraph that appears after the paragraph containing the text box.

Embedded style maps

docx styles to HTML elements. For instance, a paragraph with the style name Heading 1 is converted to a h1 element. If you have a document with your own custom styles, you can use an embedded style map to tell Mammoth how those styles should be mapped.

For instance, you could convert paragraphs with the style named WarningHeading to h1 elements with class="warning" with the style mapping:

warning:fresh

An online tool can be used to embed style maps into an existing document. js documentation.

A style map to be used for all documents can be set by configuring Mammoth (see below).

Configuration

Mammoth can be configured by writing a separate plugin. For instance, this example plugin adds a custom style map, and uses a document transform to detect paragraphs of monospace text and converts them to paragraphs with the style “Code Block”.

js to convert documents. js, which allows for some customisation. MAMMOTH_OPTIONS should be defined as a function that returns an options object.

This options object will then be passed in as the options argument to convertToHtml. js docs describe the various options available.

The global MAMMOTH_OPTIONS will be called with mammoth as the first argument. getDescendantsOfType.

FAQs

Answers to some frequently asked questions about Mammoth.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • docx
  • html
  • office
  • paste
  • word
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.9

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.9.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.9
Minimum requirementsWordPress 4.0 · PHP not listed
Update activity12 Mar 20267mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.