dioxus-katex 0.1.1

Render math with KaTeX in Yew!
Documentation

KaTeX for Dioxus

Render math with KaTeX in Dioxus!

How to use

  1. When auto-cdn feature is enable, CDN will be inserted to head when the first component of this type is loaded.

If you want to manage CDN by yourself, you can disable this feature and manually import it

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
  1. Easily added using <KaTeX/>
use yew_katex::KaTeX;

html! {
    <KaTeX math="\\KaTeX" inline=false/>
}

Todo

  • Automatically import css cdn when the first component is loaded