Crates.io | prism-wasmbind |
lib.rs | prism-wasmbind |
version | 0.2.1 |
source | src |
created_at | 2022-03-08 15:37:18.511796 |
updated_at | 2022-03-12 06:53:07.650295 |
description | Prismjs Render for wasm bind |
homepage | |
repository | https://github.com/oovm/prism-wasm |
max_upload_size | |
id | 546403 |
size | 91,116 |
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"));
}