Skip to main content

to_unicode_math

Function to_unicode_math 

Source
pub fn to_unicode_math(input: &str) -> String
Expand description

Convert a LaTeX subset to Unicode text.

assert_eq!(to_unicode_math(r"$\alpha_{i}^{2}$"), "αᵢ²");
assert_eq!(to_unicode_math(r"\frac{V}{s}"), "V/s");