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

Method test

markdown/extensions/def_list.py:37–41  ·  view source on GitHub ↗
(self, parent: etree.Element, block: str)

Source from the content-addressed store, hash-verified

35 NO_INDENT_RE = re.compile(r'^[ ]{0,3}[^ :]')
36
37 def test(self, parent: etree.Element, block: str) -> bool:
38 # A definition calls `parseBlocks` on its content, which can contain
39 # further definitions, so the nesting has to stop short of the
40 # interpreter's limit, as it does for blockquotes and lists.
41 return bool(self.RE.search(block)) and not util.nearing_recursion_limit()
42
43 def run(self, parent: etree.Element, blocks: list[str]) -> bool | None:
44

Callers

nothing calls this directly

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected