pub fn transform_math<'a>(root: &'a AstNode<'a>) -> usizeExpand description
Replace every math node in the tree with its build-time KaTeX HTML.
Returns the count of math nodes rendered, letting callers record whether a
page used math (drives the conditional KaTeX <head> link).