Expand description
This module defines the types used in the markdown parser, including tokens, inline elements, block elements, and a cursor for navigating through tokens.
Structsยง
- Delimiter
- Manages Delimiter runs in a markdown document.
A delimiter run is a sequence of the same character (e.g.,
*
,_
,~
) that can be used for bold/italic writing. - MdList
Item - Represents a list item in markdown, which can contain block elements.
- MdTable
Cell - Represents a cell in a markdown table.
- Token
Cursor - Cursor for navigating through a vector of tokens
Enumsยง
- MdBlock
Element - Represents block-level markdown elements.
- MdInline
Element - Represents inline markdown elements (text, bold/italic, link, etc.)
- Table
Alignment - Represents the alignment of table cells in markdown tables.
- Token
- Represents the different types of tokens that can be found in a markdown line.
Traitsยง
Functionsยง
- clean_
id ๐ - Cleans the ID string by removing HTML tags and special characters, and replacing spaces and underscores with hyphens.
- is_
punctuation ๐ - Helper function to determine if a token is punctuation.
- is_
whitespace ๐ - Helper function to determine if a token is whitespace or newline.