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

Method test

markdown/blockprocessors.py:360–363  ·  view source on GitHub ↗
(self, parent: etree.Element, block: str)

Source from the content-addressed store, hash-verified

358 (self.tab_length, self.tab_length * 2 - 1))
359
360 def test(self, parent: etree.Element, block: str) -> bool:
361 # As in `ListIndentProcessor`, nesting stops short of the recursion limit.
362 # `UListProcessor` inherits this method, so unordered lists are covered too.
363 return bool(self.RE.match(block)) and not util.nearing_recursion_limit()
364
365 def run(self, parent: etree.Element, blocks: list[str]) -> None:
366 # Check for multiple items in one block.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected