Documentation

Lean.Data.Markdown.Text

Text-Level Decoding #

Backslash escapes and character references (CommonMark §2.4 and §2.5). The inline parser recognizes both as inline elements in paragraph text. Link destinations, link titles, and info strings are not parsed as inlines, so consumers decode them with decodeText.

@[inline]

Whether c is an ASCII control character (CommonMark §2.1), which is U+0000 to U+001F, or U+007F.

Equations
Instances For

    Whether c is in CommonMark's ASCII-punctuation set, which is !"#$%&'()*+,-./:;<=>?@[\]^_\`{|}~. These are the only characters that a backslash escape consumes; a backslash before any other character is a literal backslash followed by the character.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Decodes the body of a character reference &body; (CommonMark §2.5), which is the text between & and ;.

      Named references are those of HTML. Decimal references (# followed by one to seven digits) and hexadecimal references (#x or #X followed by one to six hex digits) denote a code point; the code point zero, surrogates, and values above U+10FFFF decode to U+FFFD.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Whether c can occur in the body of a character reference. The body consists of ASCII letters, digits, and #.

        Equations
        Instances For

          Parses a character reference whose & is immediately before i. On success, returns the decoded text together with the position after the ;.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Decodes the backslash escapes and character references in s. CommonMark applies this decoding to link destinations, link titles, and the info strings of fenced code blocks.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For