package d2latex

Import Path
	github.com/pancsta/d2/d2renderers/d2latex (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 3 packages

Involved Source Files latex_common.go limits.go
Package-Level Functions (total 3)
func Measure(s string) (width, height int, err error)
func Render(s string) (_ string, err error)
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.
Package-Level Constants (total 2)
MaxGroupNestingDepth prevents deeply nested TeX groups from exhausting the Go stack in mathjax-go's recursive group parser.
MaxInputBytes bounds the work and output that a single LaTeX label can cause in the embedded MathJax renderer.