Module rustc_errors::markdown::parse

source Β·

Structs§

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 πŸ”’
  • HDG πŸ”’
  • LNK_CHARS πŸ”’
  • LNK_E πŸ”’
  • LNK_S πŸ”’
  • REPLACEMENTS πŸ”’
    Pattern replacements
  • STG πŸ”’
  • STK πŸ”’
  • UL1 πŸ”’
  • UL2 πŸ”’

Functions§

  • Parse a buffer
  • expand_plaintext πŸ”’
    Perform tranformations to text. This splits paragraphs, replaces patterns, and corrects newlines.
  • Find first line that isn’t empty or doesn’t start with whitespace, that will be our contents
  • 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.
  • Bulleted list
  • 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

Type Aliases§

  • ParseResult πŸ”’
    Output of a parse function
  • Parsed πŸ”’
    (extracted, remaining)