These three are used by /admin/write/ to turn a Word file into Markdown in the browser
(../admin-import.js loads them on demand, the first time a .docx is picked). They are
copied here rather than loaded from a CDN because src/_headers sets script-src 'self',
and because the editor should keep working without a third-party request.
| File | Package | Version | Licence |
|---|---|---|---|
mammoth.browser.min.js |
mammoth | 1.13.0 | BSD-2-Clause |
turndown.js |
turndown | 7.2.5 | MIT |
turndown-plugin-gfm.js |
turndown-plugin-gfm | 1.0.2 | MIT |
Each file is the package’s own prebuilt browser bundle, unmodified. To update one:
npm pack mammoth@<version> && tar xzf mammoth-<version>.tgz
cp package/mammoth.browser.min.js src/assets/js/vendor/
turndown.js and turndown-plugin-gfm.js are at package/dist/ inside their tarballs.
After updating, check the editor still reads a .docx end to end: headings, bold text, a
quotation, a table and a picture (see docs/project-log.md, 2026-11-10, for what each of
those depends on).