markdown_it.rules_inline.state_inline module

class markdown_it.rules_inline.state_inline.Delimiter(marker: int, length: int, jump: int, token: int, end: int, open: bool, close: bool, level: Optional[bool] = None)[source]

Bases: object

close
end
jump
length
level
marker
open
token
class markdown_it.rules_inline.state_inline.Scanned(can_open, can_close, length)

Bases: tuple

property can_close

Alias for field number 1

property can_open

Alias for field number 0

property length

Alias for field number 2

class markdown_it.rules_inline.state_inline.StateInline(src: str, md: MarkdownIt, env: MutableMapping, outTokens: List[markdown_it.token.Token])[source]

Bases: markdown_it.ruler.StateBase

push(ttype, tag, nesting)[source]

Push new token to “stream”. If pending text exists - flush it as text token

pushPending()[source]
scanDelims(start, canSplitWord)[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

srcCharCode: Tuple[int, ]