A lightweight LaTeX-to-MathML Core conversion library for JavaScript, currently at v0.13.2. Released under MIT license, it offers a smaller bundle size (171KB minified) compared to MathJax (338KB) and KaTeX (280KB), with better LaTeX coverage than TeXZilla. It supports system fonts for minimal footprint and includes a comprehensive test suite. Essential for accessibility and SEO-friendly math rendering in modern browsers. Active development with periodic releases aimed at fixing bugs and adding LaTeX functions.
npm install temmlVerified import paths — ran on the pinned version, not inferred.
Demonstrates converting LaTeX to MathML string using temml() and auto-rendering math in the document body with renderMathInElement().
Set `wrap: 'text'` explicitly in options to preserve old behavior, or update styles to handle MathML core wrappers.
Replace `\url{...}` and `\href{url}{text}` with manual HTML anchor elements outside math mode.Upgrade Node.js to version 18.13.0 or later, or use a polyfill/compatibility shim.
Include the Latin Modern Math font via CSS or use a font loading strategy to ensure correct rendering in Chromium-based browsers.
Monitor changelog for upcoming API changes; consider using the core `temml()` function with custom DOM manipulation instead.
Use default import: `import temml from 'temml'`.
Replace `\url{...}` with an HTML anchor element outside math mode.Run `npm install temml` and ensure import path is correct (e.g., `import temml from 'temml'`).
Ensure the target element exists in the DOM before calling `renderMathInElement`, e.g., inside `DOMContentLoaded` event.
No dependency data recorded yet.