Scanner
A cursor over a bounded slice of a source.
Parameters
the text to scan
index just past the last character the scanner may read
index of the character the scanner points at
Properties
Functions
Consumes a backtick-delimited span, which a label treats as opaque.
Consumes a {#identifier} suffix.
Consumes a title enclosed in double quotes, single quotes or parentheses. A backslash escapes the next character, and the closing delimiter may not appear unescaped inside. The title may span lines, but not a blank one, since the construct it belongs to ends where a paragraph does.
Consumes a backslash and the character it escapes, which may not be a line terminator.
Consumes a parenthesized destination with its optional title.
Consumes a one-line math expression. It opens with a dollar sign and one space or tab and closes with one space or tab and a dollar sign; an inner dollar sign belongs to the expression as long as it is not adjacent to whitespace.