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

Function markTightParagraphs

markdown_it/rules_block/list.py:88–98  ·  view source on GitHub ↗
(state: StateBlock, idx: int)

Source from the content-addressed store, hash-verified

86
87
88def markTightParagraphs(state: StateBlock, idx: int) -> None:
89 level = state.level + 2
90
91 i = idx + 2
92 length = len(state.tokens) - 2
93 while i < length:
94 if state.tokens[i].level == level and state.tokens[i].type == "paragraph_open":
95 state.tokens[i + 2].hidden = True
96 state.tokens[i].hidden = True
97 i += 2
98 i += 1
99
100
101def list_block(state: StateBlock, startLine: int, endLine: int, silent: bool) -> bool:

Callers 1

list_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…