Crates.io | aplayer-wasmbind |
lib.rs | aplayer-wasmbind |
version | 0.2.0 |
source | src |
created_at | 2020-10-22 02:25:00.476565 |
updated_at | 2020-10-22 08:09:15.499759 |
description | flowchart.js render for wasm bind |
homepage | |
repository | https://github.com/GalAster/yew-flowchart.js |
max_upload_size | |
id | 304127 |
size | 65,648 |
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"));
}