Skip to main content

render_math

Function render_math 

Source
pub fn render_math(tex: &str, font_pt: f64) -> Result<MathSpan, String>
Expand description

Typeset tex (inline math, no $ delimiters) at font_pt points into a self-contained SVG fragment (KaTeX fonts embedded as glyph paths) plus exact metrics in inches.