### TypeScript Usage for MathML to OMML Conversion Source: https://github.com/fiduswriter/mathml2omml/blob/main/README.md Demonstrates how to use the `mml2omml` function and the `MML2OMML` class in TypeScript for converting MathML. Supports basic conversion and options like disabling decoding. ```typescript 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(); ``` -------------------------------- ### Convert MathML to OMML in JavaScript Source: https://github.com/fiduswriter/mathml2omml/blob/main/README.md Use the `mml2omml` function to convert a MathML string to its OOML representation. The output is logged to the console. ```javascript import {mml2omml} from "mathml2omml" const mml = ' 2 + 2 = 4 ' const omml = mml2omml(mml) console.log(omml) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.