Expand description
Configurable resource limits for markdown parsing and extraction.
All limits have secure defaults. Callers may lower any limit freely;
raising a limit above the secure default requires the explicit with_*
builders so accidental unbounded parsing cannot happen silently.
Structs§
- AstStats
- A single AST node/depth measurement result.
- Parse
Limits - Configurable parsing limits with secure defaults.
Enums§
- Limit
Kind - Which resource limit was exceeded.
- Parse
Limits Error - Error produced while validating pre-parse limits.
Functions§
- measure_
ast - Compute node count and maximum nesting depth with checked arithmetic.