Module define_function

Module define_function 

Source
Expand description

Function definition utilities for KaTeX Rust implementation

This module provides utilities for defining mathematical functions and their properties, similar to the JavaScript defineFunction.js module.

Structs§

FunctionContext
Context structure passed to function handlers during LaTeX function parsing and rendering.
FunctionDefSpec
Complete specification for defining LaTeX mathematical functions in KaTeX.
FunctionPropSpec
Configuration structure defining properties and parsing behavior for LaTeX mathematical functions.
FunctionSpec
Runtime function specification used during LaTeX parsing and processing.

Functions§

normalize_argument
Normalizes a function argument by unwrapping single-element ordered groups.
ord_argument
Normalizes a function argument into a list of elements for HTML/MathML rendering.

Type Aliases§

FunctionHandler
Type alias for LaTeX function handlers that process mathematical expressions.
HtmlBuilder
Type alias for functions that build HTML DOM nodes from mathematical parse nodes.
MathMLBuilder
Type alias for functions that build MathML DOM nodes from mathematical parse nodes.