1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//! Environment definition system for KaTeX
//!
//! This module provides functionality for defining LaTeX environments
//! and their corresponding HTML/MathML builders.
use crate::;
pub use ;
pub use ;
pub use *;
/// Specification for defining LaTeX environments in KaTeX's parsing system.
///
/// This struct encapsulates all the information needed to define how a LaTeX
/// environment should be parsed, processed, and rendered. It serves as the
/// blueprint for environment definitions, mapping LaTeX syntax to KaTeX's
/// internal representation and output formats.
///
/// Environment definitions typically correspond to LaTeX's
/// `\begin{env}...\end{env}` syntax and are used for structured content like
/// matrices, alignments, and other mathematical constructs.
///
/// # See Also
///
/// - [`EnvProps`]: Properties controlling parsing behavior
/// - [`EnvHandler`]: Function type for processing environments
/// - [`HtmlBuilder`]: Function type for HTML generation
/// - [`MathMLBuilder`]: Function type for MathML generation
/// - [`crate::define_function`]: Related function definition system