markdown_it.rules_block.state_block module#
- class markdown_it.rules_block.state_block.StateBlock(src: str, md: MarkdownIt, env: EnvType, tokens: list[Token])[source]#
Bases:
StateBase
- getLines(begin: int, end: int, indent: int, keepLastLF: bool) str [source]#
Cut lines range from source.
- is_code_block(line: int) bool [source]#
Check if line is a code block, i.e. the code block rule is enabled and text is indented by more than 3 spaces.
- skipCharsBack(pos: int, code: int, minimum: int) int [source]#
Skip character code reverse from given position - 1.