Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxInputBytes bounds the work and output that a single LaTeX label can // cause in the embedded MathJax renderer. MaxInputBytes = 4 << 10 // MaxGroupNestingDepth prevents deeply nested TeX groups from exhausting // the Go stack in mathjax-go's recursive group parser. MaxGroupNestingDepth = 128 )
Variables ¶
This section is empty.
Functions ¶
func ValidateInput ¶ added in v0.10.0
ValidateInput applies D2's resource limits to a LaTeX label. Render and Measure both call it so compiler, WASM, and raw render-target paths share the same admission policy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.