Skip to main content

Module parse

Module parse 

Source
Expand description

Markdown source to AST. The entry points are the free parse function (maximal default dialect) and the SyntaxOptions::parse / SyntaxOptions::parse_strict methods. Parsing is tolerant: problems are collected as Diagnostics rather than aborting.

Structs§

ParseOutput
The result of a tolerant parse: the document plus any diagnostics gathered along the way (empty on a clean parse).

Enums§

ParseStrictError
The error returned by SyntaxOptions::parse_strict.

Functions§

parse
Parse input under the maximal default dialect (SyntaxOptions::default). Infallible and tolerant; sugar for SyntaxOptions::default().parse(input).