13 releases (breaking)

0.10.0 Jun 9, 2022
0.9.3 Mar 7, 2022
0.8.0 Oct 26, 2020

#289 in WebAssembly

Download history 4/week @ 2022-11-28 8/week @ 2022-12-05 24/week @ 2022-12-12 10/week @ 2022-12-19 8/week @ 2022-12-26 4/week @ 2023-01-02 6/week @ 2023-01-09 5/week @ 2023-01-16 15/week @ 2023-01-23 21/week @ 2023-01-30 30/week @ 2023-02-06 33/week @ 2023-02-13 38/week @ 2023-02-20 5/week @ 2023-02-27 10/week @ 2023-03-06 4/week @ 2023-03-13

60 downloads per month
Used in 2 crates

MPL-2.0 license

275KB
340 lines

KaTeX WASM (KaTeX 0.16.0)

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.5–2.4MB
~51K SLoC