markdown_it.parser_block module

Block-level tokenizer.

class markdown_it.parser_block.ParserBlock[源代码]

基类:object

ParserBlock#ruler -> Ruler

[[Ruler]] instance. Keep configuration of block rules.

parse(src: str, md, env, outTokens: List[markdown_it.token.Token], ords: Optional[Tuple[int, ...]] = None) Optional[List[markdown_it.token.Token]][源代码]

Process input string and push block tokens into outTokens.

tokenize(state: markdown_it.rules_block.state_block.StateBlock, startLine: int, endLine: int, silent: bool = False) None[源代码]

Generate tokens for input range.