Module rustc_errors::markdown::parse
source ยท Structsยง
- Context ๐Parsing context
Enumsยง
- BreakRule ๐Whether two types should or shouldnโt have a paragraph break between them
- ParseOpt ๐Flags to simple parser function
- Prev ๐Character class preceding this one
Constantsยง
- ANC_E ๐Short aliases that we can use in match patterns. If an end pattern is not included, this type may be variable
- ANC_S ๐
- BRK ๐
- CBK ๐
- CIL ๐
- CMT_E ๐
- CMT_S ๐
- EMP_A ๐
- EMP_U ๐
- HDG ๐
- LNK_CHARS ๐
- LNK_E ๐
- LNK_S ๐
- REPLACEMENTS ๐Pattern replacements
- STG_A ๐
- STG_U ๐
- STK ๐
Functionsยง
- Parse a buffer
- expand_plaintext ๐Perform tranformations to text. This splits paragraphs, replaces patterns, and corrects newlines.
- get_indented_section ๐
- is_break_ty ๐Types that indicate some form of break
- match_reflink ๐Turn reflinks (links with reference IDs) into normal standalone links using listed link definitions
- normalize ๐Take a parsed stream and fix the little things
- ord_list_start ๐Verify a valid ordered list start (e.g.
1.
) and parse it. Returns the parsed number and offset of character after the dot. - parse_any_link ๐Parse links.
can_be_def
indicates that a link definition is possible (top level, located at the start of a line) - parse_codeblock ๐Parse a codeblock. Accounts for >3 backticks and language specification
- parse_codeinline ๐Parse backtick-wrapped inline code. Accounts for >1 backtick sets
- parse_heading ๐
- parse_ordered_li ๐Numbered list
- parse_recursive ๐Parse a buffer with specified context
- parse_simple_pat ๐The simplest kind of patterns: data within start and end patterns
- parse_to_newline ๐Resturn
(match, residual)
to end of line. The EOL is returned with the residual. - parse_unordered_li ๐Bulleted list
- parse_with_end_pat ๐Find and consume an end pattern, return
(match, residual)
- should_break ๐Blocks that automatically handle their own text wrapping
- trim_ascii_start ๐If there is more than one whitespace char at start, trim the extras
- trim_extra_ws ๐If there is more than one whitespace char at start or end, trim the extras
- unordered_list_start ๐
Type Aliasesยง
- ParseResult ๐Output of a parse function
- Parsed ๐
(extracted, remaining)