mermaid-wasmbind

Crates.iomermaid-wasmbind
lib.rsmermaid-wasmbind
version0.1.0
sourcesrc
created_at2020-10-28 06:44:07.709685
updated_at2020-10-28 06:44:07.709685
descriptionKaTeX Render for wasm bind
homepage
repositoryhttps://github.com/GalAster/yew-mermaid.js
max_upload_size
id306234
size922,928
SasakiSaki (oovm)

documentation

README

KaTeX Wasmbind

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/mermaid.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: 2

cargo fmt