Skip to main content

Module math

Module math 

Source
Expand description

Optional math rendering hooks.

Upstream Mermaid renders $$...$$ fragments via KaTeX and measures the resulting HTML in a browser DOM. merman is headless and pure-Rust by default, so math rendering is modeled as an optional, pluggable backend.

This module only defines an interface; the default implementation is a no-op.

Structs§

NoopMathRenderer
Default math renderer: does nothing.

Traits§

MathRenderer
Optional math renderer used to transform label HTML and (optionally) provide measurements.