markdown_it.rules_inline.state_inline module#
- class markdown_it.rules_inline.state_inline.Delimiter(marker: 'int', length: 'int', token: 'int', end: 'int', open: 'bool', close: 'bool', level: 'bool | None' = None)[source]#
Bases:
object
- class markdown_it.rules_inline.state_inline.Scanned(can_open, can_close, length)[source]#
Bases:
NamedTuple
- class markdown_it.rules_inline.state_inline.StateInline(src: str, md: MarkdownIt, env: EnvType, outTokens: list[Token])[source]#
Bases:
StateBase- push(ttype: str, tag: str, nesting: Literal[-1, 0, 1]) Token[source]#
Push new token to “stream”. If pending text exists - flush it as text token
- scanDelims(start: int, canSplitWord: bool) Scanned[source]#
Scan a sequence of emphasis-like markers, and determine whether it can start an emphasis sequence or end an emphasis sequence.
start - position to scan from (it should point at a valid marker);
canSplitWord - determine if these markers can be found inside a word