#katex #dioxus #render #expression #css #cdn

dioxus-katex

Render math with KaTeX in Dioxus!

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

Download history 10/week @ 2024-03-08 3/week @ 2024-03-15 39/week @ 2024-03-29 10/week @ 2024-04-05

57 downloads per month

MPL-2.0 license

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