Equation
Simple LaTeX subset — see src/core/equation/index.ts.
MAX_LATEX_LENGTH = 2000, blocked\\input,\\def, balanced bracesvalidateLatex(latex) → {valid,errors}latexToHtml(latex)→<span class="pde-frac">etc., handles\\frac,\\sqrt,^/_, greeklatexToPlainTextfor PDF fallback$latex$equationCssforpde-equation,pde-frac,pde-sqrt
Nodes: InlineEquationNode (type:"equation", latex, display?) and EquationBlockNode (type:"equation-block"), factories createEquation/createEquationBlock, validated in validator.ts, rendered in editor-web/view and export/*.