#mermaid #yew #render #katex

yew-mermaid

Render math with KaTeX in Yew!

2 unstable releases

0.2.0 Oct 28, 2020
0.1.0 Oct 28, 2020

#15 in #mermaid

MPL-2.0 license

1MB
1K SLoC

JavaScript 1K SLoC Rust 131 SLoC TypeScript 5 SLoC

Mermaid.js for Yew

Render diagram with Mermaid.js in Yew!

How to use

  1. No CDN needed

  2. Easily added using <Mermaid/>

use yew_mermaid::Mermaid;

html! {
    <Mermaid code=&self.input theme="neutral"/>
}

Todo

  • Fix the problem that the entire wasm vm crashes when rendering errors

Dependencies

~12MB
~227K SLoC