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

Method test

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

Source from the content-addressed store, hash-verified

523 SEARCH_RE = re.compile(RE, re.MULTILINE)
524
525 def test(self, parent: etree.Element, block: str) -> bool:
526 m = self.SEARCH_RE.search(block)
527 if m:
528 # Save match object on class instance so we can use it later.
529 self.match = m
530 return True
531 return False
532
533 def run(self, parent: etree.Element, blocks: list[str]) -> None:
534 block = blocks.pop(0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected