MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / parse

Method parse

markdown_it/parser_block.py:105–113  ·  view source on GitHub ↗

Process input string and push block tokens into `outTokens`.

(
        self, src: str, md: MarkdownIt, env: EnvType, outTokens: list[Token]
    )

Source from the content-addressed store, hash-verified

103 state.line = line
104
105 def parse(
106 self, src: str, md: MarkdownIt, env: EnvType, outTokens: list[Token]
107 ) -> list[Token] | None:
108 """Process input string and push block tokens into `outTokens`."""
109 if not src:
110 return None
111 state = StateBlock(src, md, env, outTokens)
112 self.tokenize(state, state.line, state.lineMax)
113 return state.tokens

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.95
StateBlockClass · 0.85

Tested by

no test coverage detected