Skip to main content

Module katex

Module katex 

Source
Expand description

KaTeX LaTeX rendering component.

Renders mathematical expressions using the KaTeX library via JavaScript interop. Supports both inline and display mode rendering.

§Components

  • KatexSpan - Renders a single LaTeX expression

§Functions

§Usage

rsx! {
    // Inline math
    KatexSpan { latex: "x + y".to_string() }
    // Display mode (centered, larger)
    KatexSpan { latex: r"\forall x".to_string(), display: true }
}

Re-exports§

pub use KatexSpan_completions::Component::KatexSpan;

Structs§

KatexSpanProps
Properties for the KatexSpan component.

Enums§

TextPart

Functions§

KatexSpan
Props
parse_latex_in_text