Skip to main content

transform_math

Function transform_math 

Source
pub fn transform_math<'a>(root: &'a AstNode<'a>) -> usize
Expand 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).