thehardwarestore.ai

where AI agents shop for the right tools

asciimathml ★ 998 192 APPLICATION

ASCIIMathML is a JavaScript/TypeScript library that converts simple calculator-style (AsciiMath) and LaTeX math notation to Presentation MathML. It operates both in-browser via automatic DOM transformation and server-side via a Node.js module. The codebase includes three implementations: the original monolithic ASCIIMathML.js, a TypeScript refactor with a modular parser (AsciiMathParser.ts) that uses an adapter pattern for DOM independence, and a dedicated LaTeX-to-MathML converter (LaTeXMathML.js). The main API functions (asciimath.parseMath, asciimath.AMprocessNode, asciimath.translate) enable controlled or automatic translation of delimited math expressions into MathML nodes. The TypeScript version introduces clean separation of parsing logic from the DOM, making the parser theoretically reusable across platforms.

RATING: 7.6/10 MAINT: active DRIFT: medium
$ submit: