Expand description
Markdown source to AST. The entry point is the free parse function,
which reads the crate’s one syntax. Parsing is tolerant: problems are
collected as Diagnostics rather than aborting.
Structs§
- Definitions
- The link reference definitions an inline parse resolves references
against: they decide whether
[a][b],[a][], and[a]are reference links or images. - Inline
Output - The result of an inline parse: the inlines, the tokens of the text, and any diagnostics.
- Inline
Source - The inline content the parser read for one paragraph or heading, from
Document::inline_source, with where each of its offsets sits in the document’s source. - Inline
Token - A run of the text of an inline parse: the innermost inline that holds it,
as its index in
InlineOutput::nodes, and the part of that inline it is. - Parse
Output - The result of a tolerant parse: the document plus any diagnostics gathered along the way (empty on a clean parse).
Enums§
- Token
Role - The part of an inline a token is.
Functions§
- parse
- Parse
input. Infallible and tolerant: problems are reported as diagnostics in the returnedParseOutput. - parse_
inline - Parse
textas the inline content of one leaf block, with the same syntax asparseand no block rule:# aand- astay text. A reference forms only for a labeldefinitionsholds. Infallible, likeparse; a leading U+FEFF is content.