katex-wasmbind

Crates.iokatex-wasmbind
lib.rskatex-wasmbind
version0.10.0
sourcesrc
created_at2020-10-10 07:13:37.046694
updated_at2022-06-09 02:41:32.346005
descriptionKaTeX Render for wasm bind
homepage
repositoryhttps://github.com/oovm/katex-wasm
max_upload_size
id297921
size274,094
SasakiSaki (oovm)

documentation

README

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
Commit count: 16

cargo fmt