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

Method parse

markdown_it/parser_inline.py:206–215  ·  view source on GitHub ↗

Process input string and push inline tokens into `tokens`

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

Source from the content-addressed store, hash-verified

204 state.pushPending()
205
206 def parse(
207 self, src: str, md: MarkdownIt, env: EnvType, tokens: list[Token]
208 ) -> list[Token]:
209 """Process input string and push inline tokens into `tokens`"""
210 state = StateInline(src, md, env, tokens)
211 self.tokenize(state)
212 rules2 = self.ruler2.getRules("")
213 for rule in rules2:
214 rule(state)
215 return state.tokens

Callers

nothing calls this directly

Calls 3

tokenizeMethod · 0.95
StateInlineClass · 0.85
getRulesMethod · 0.80

Tested by

no test coverage detected