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

Function block

markdown_it/rules_core/block.py:5–13  ·  view source on GitHub ↗
(state: StateCore)

Source from the content-addressed store, hash-verified

3
4
5def block(state: StateCore) -> None:
6 if state.inlineMode:
7 token = Token("inline", "", 0)
8 token.content = state.src
9 token.map = [0, 1]
10 token.children = []
11 state.tokens.append(token)
12 else:
13 state.md.block.parse(state.src, state.md, state.env, state.tokens)

Callers

nothing calls this directly

Calls 2

TokenClass · 0.85
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…