Crates.io | dioxus-katex |
lib.rs | dioxus-katex |
version | 0.4.0 |
source | src |
created_at | 2022-03-07 08:37:13.123489 |
updated_at | 2023-09-12 06:42:58.978459 |
description | Render math with KaTeX in Dioxus! |
homepage | |
repository | https://github.com/oovm/katex-wasm |
max_upload_size | |
id | 544893 |
size | 5,080 |
Render math with KaTeX in Dioxus!
<link rel="stylesheet" href="https://unpkg.com/katex@0.12.0/dist/katex.min.css">
use_katex_display
hook to prepare context.compile
to get math expression node.use dioxus_katex::use_katex_display;
let katex = use_katex_display(&cx);
let math = katex.compile(text);