markdown_it.parser_inline module#

Tokenizes paragraph content.

class markdown_it.parser_inline.ParserInline[source]#

Bases: object

parse(src: str, md: MarkdownIt, env: EnvType, tokens: list[Token]) list[Token][source]#

Process input string and push inline tokens into tokens

skipToken(state: StateInline) None[source]#

Skip single token by running all rules in validation mode; returns True if any rule reported success

tokenize(state: StateInline) None[source]#

Generate tokens for input range.


(state: StateInline, silent: bool) -> matched: bool)

silent disables token generation, useful for lookahead.

alias of Callable[[StateInline, bool], bool]