
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
mathml2omml
Advanced tools
Convert MathML to the OOML format used in DOCX files without XSLT.
You can use it like this:
import {mml2omml} from "mathml2omml"
const mml = '<math xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<mrow>
<mn>2</mn>
<mo>+</mo>
<mn>2</mn>
<mo>=</mo>
<mn>4</mn>
</mrow>
</semantics>
</math>'
const omml = mml2omml(mml)
console.log(omml)
> <m:oMath xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math">
> <m:r>
> <m:t xml:space="preserve">2+2=4</m:t>
> </m:r>
> </m:oMath>
This library includes TypeScript definitions:
import { mml2omml } from "mathml2omml";
// Simple usage
const omml = mml2omml(mathmlString);
// With options
const omml = mml2omml(mathmlString, { disableDecode: true });
// Using the class directly
import { MML2OMML } from "mathml2omml";
const converter = new MML2OMML(mathmlString);
converter.run();
const result = converter.getResult();
LGPL v.3.0 or later.
The xml parser/stringifier in the parse-stringify-folder is based upon html-parse-stringify (MIT).
License of test files depends on source of files.
Some test fixtures fall under other licenses/copyrights. See the LICENSE and copyright.txt files in the different test fixture folders.
Remaining test fixtures fall under the same license and copyright as the source code.
FAQs
a MathML to OMML converter
The npm package mathml2omml receives a total of 7,289 weekly downloads. As such, mathml2omml popularity was classified as popular.
We found that mathml2omml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.