/** * KaTeX strictness policy — mirrors @moraya/core's `katexStrict` * (katex-options.ts): CJK text inside math is legitimate teaching content * (`\ce{... ->[点燃] ...}`, `\xrightarrow{加热}`), and the default * strict:'warn' logs a console.warn PER CHARACTER PER RENDER. Downgrade that * one code to 'ignore'; everything else stays at 'warn'. */ declare const katexStrict: (errorCode: string) => "ignore" | "warn"; interface RenderFormulaOptions { /** Block math (true) vs inline math (false). Default true. */ display?: boolean; } /** * Render LaTeX (including mhchem chemistry) to a KaTeX HTML string. * * `throwOnError: false` — a half-typed formula renders as red source text * instead of throwing, which is the right behavior mid-edit on a canvas. * Output is KaTeX-generated markup from LaTeX source only (no raw user HTML * pass-through) and requires `katex/dist/katex.css` in the host page. */ declare function renderFormulaHtml(latex: string, options?: RenderFormulaOptions): string; export { type RenderFormulaOptions, katexStrict, renderFormulaHtml };