The math (inline) and mathBlock (display) node specs, to merge into a
schema: new Schema({ nodes: { ...defaultNodes(), ...mathNodes() }, … }).
Both are atoms holding nothing but their LaTeX source: the rendered MathML
is derived on every draw, so changing the renderer re-renders every formula
in the document without touching it.
The
math(inline) andmathBlock(display) node specs, to merge into a schema:new Schema({ nodes: { ...defaultNodes(), ...mathNodes() }, … }).Both are atoms holding nothing but their LaTeX source: the rendered MathML is derived on every draw, so changing the renderer re-renders every formula in the document without touching it.