markdown_it.rules_block.state_block module
markdown_it.rules_block.state_block module#
- class markdown_it.rules_block.state_block.StateBlock(src: str, md: MarkdownIt, env, tokens: list[Token], srcCharCode: tuple[int, ...] | None = None)[source]#
Bases:
markdown_it.ruler.StateBase
- getLines(begin: int, end: int, indent: int, keepLastLF: bool) str [source]#
Cut lines range from source.
- push(ttype: str, tag: str, nesting: int) markdown_it.token.Token [source]#
Push new token to “stream”.