MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / test

Method test

markdown/extensions/admonition.py:131–136  ·  view source on GitHub ↗
(self, parent: etree.Element, block: str)

Source from the content-addressed store, hash-verified

129 return sibling, block, the_rest
130
131 def test(self, parent: etree.Element, block: str) -> bool:
132
133 if self.RE.search(block):
134 return True
135 else:
136 return self.parse_content(parent, block)[0] is not None
137
138 def run(self, parent: etree.Element, blocks: list[str]) -> None:
139 block = blocks.pop(0)

Callers

nothing calls this directly

Calls 1

parse_contentMethod · 0.95

Tested by

no test coverage detected