Mathematics
Inline and display equations rendered through MathJax 3.
Published npm package · Open source
LaTeX Content Renderer brings math, chemistry, molecular structures and rich scientific notation into React, mobile WebViews and AI products without rebuilding the rendering pipeline for every platform.
01 / Why it exists
Math tools do not automatically solve chemistry, molecule drawing, mobile WebViews or partial equations arriving from an AI stream. This package unifies those concerns behind a small set of components and functions.
npm install latex-content-renderer
import { SciContent } from
'latex-content-renderer';
<SciContent content={`
Solve: $x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}
Water: $\\ce{H2O}$
Ethanol: \\smiles{CCO}
`} />Solve the quadratic equation
x = −b ± √(b² − 4ac) / 2a02 / Capabilities
Inline and display equations rendered through MathJax 3.
mhchem reactions plus 2D molecular structures from eight SMILES input formats.
React, React Native, Expo, Flutter, Android, iOS, WebViews and plain HTML.
Buffers incomplete LaTeX chunks so live LLM responses do not flash broken equations.
ARIA descriptions for equations, tables, images and chemistry structures.
Convert equations to SVG strings or data URLs for documents and presentations.
03 / Run it anywhere