7 unstable releases (3 breaking)
0.4.0 | Sep 12, 2023 |
---|---|
0.3.2 | Jul 19, 2023 |
0.2.2 | Jun 9, 2022 |
0.2.0 | Mar 7, 2022 |
0.1.1 | Mar 7, 2022 |
#1023 in Math
57 downloads per month
280KB
409 lines
KaTeX for Dioxus
Render math with KaTeX in Dioxus!
How to use
- First you need to import css cdn:
<link rel="stylesheet" href="https://unpkg.com/katex@0.12.0/dist/katex.min.css">
- Call
use_katex_display
hook to prepare context. - Call
compile
to get math expression node.
use dioxus_katex::use_katex_display;
let katex = use_katex_display(&cx);
let math = katex.compile(text);
Dependencies
~2.5–3.5MB
~71K SLoC