3 unstable releases

0.2.1 Mar 12, 2022
0.2.0 Mar 8, 2022
0.1.0 Mar 8, 2022

#1200 in WebAssembly


Used in dioxus-prism

MPL-2.0 license

53KB
82 lines

KaTeX WASM (KaTeX 0.15.2)

Basic

Notice that this does not include css, so cdn still must be included.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
use katex_wasmbind::KaTeXOptions;

fn main() {
    let d = KaTeXOptions::display_mode();
    let i = KaTeXOptions::inline_mode();
    assert_ne!(d.render("\\frac12"), i.render("\\frac12"));
}

Todo list

  • Remove serde dependencies

Dependencies

~1.2–2.3MB
~46K SLoC