TokenType
The semantic type of a highlighted span in a CommonMark document.
Token types cover both block-level markers and inline constructs. A syntax highlighter maps each type to a colour or style; a semantic analyser can use the types for structure-aware tooling.
Inheritors
Types
A URI or email address inside an autolink (<…>).
The > marker of a block quote.
The content lines of a fenced or indented code block.
The content of an inline code span.
The backtick run(s) delimiting an inline code span.
A delimiter run opening or closing emphasis (* or _).
A backslash escape sequence (\!, \*, etc.).
A bare URL or email address (extended autolink, no angle brackets).
The # characters of an ATX heading, or the =/- underline of a Setext heading.
The text content of a heading.
An inline raw HTML tag.
The ! prefix of an image.
The [ or ] bracket of an inline link or image.
A link or image destination URL.
The bullet (-, +, *) or ordered (1., 2)) list item marker.
The ~~ delimiter runs opening or closing a strikethrough span.
A delimiter run opening or closing strong emphasis (** or __).
Pipe characters (|) and delimiter-row content (---, :---:, etc.).
Content of a header cell in a GFM table.
The [ ] or [x] checkbox marker in a task list item.
The marker characters of a thematic break (---, ***, ___).