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
parse_latex_in_text- Parses text containing$...$and$$...$$markers
§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§
- Katex
Span Props - Properties for the
KatexSpancomponent.