Expand description
LaTeX to SVG rendering module.
This module provides functionality to convert LaTeX mathematical expressions into SVG format using the microtex_rs library. It handles both inline ($…$) and display ($$…$$) mathematical content.
§Examples
use markdown2pdf::latex::latex_to_svg;
// Render an inline mathematical expression
let svg = latex_to_svg("E = mc^2", false);
assert!(svg.is_ok());Note: Full LaTeX rendering examples are excluded from doctests due to underlying C++ dependencies that may cause runtime crashes in test environment.
Statics§
Functions§
- latex_
to_ svg - Converts a LaTeX mathematical expression to SVG format.