When the parser encounters syntactically questionable or invalid markup
(e.g. an unclosed [[div]] block), it records a Diagnostic rather
than throwing an error. The parser is lenient: it always produces an AST,
even when diagnostics are present.
Diagnostics are returned alongside the AST via ParseResult.
Diagnostic types for reporting parse-time issues.
When the parser encounters syntactically questionable or invalid markup (e.g. an unclosed
[[div]]block), it records a Diagnostic rather than throwing an error. The parser is lenient: it always produces an AST, even when diagnostics are present.Diagnostics are returned alongside the AST via ParseResult.
Since
2.0.0