In a case of self-closing tag (code, html, fence, etc.), it has contents of this tag.
Type of the token (string, e.g. "paragraph_open")
html tag name, e.g. "p"
Html attributes. Format: [ [ name1, value1 ], [ name2, value2 ] ]
Source map info. Format: [ line_begin, line_end ]
Level change (number in {-1, 0, 1} set), where:
1 means the tag is opening0 means the tag is self-closing-1 means the tag is closingnesting level, the same as state.level
An array of child nodes (inline and img tokens)
In a case of self-closing tag (code, html, fence, etc.), it has contents of this tag.
'*' or '_' for emphasis, fence string for fence, etc.
Additional information:
A place for plugins to store an arbitrary data
True for block-level tokens, false for inline tokens. Used in renderer to calculate line breaks
Search attribute index by name.
Add [ name, value ] attribute to list. Init attrs if necessary
Set name attribute to value. Override old value if exists.
Get the value of attribute name, or null if it does not exist.
Join value to existing attribute via space. Or create new attribute if not exists. Useful to operate with token classes.
Represents one item in the parsed token stream, storing parsed data and providing helpers for managing HTML attributes.