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

Method test

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

Source from the content-addressed store, hash-verified

461 RE = re.compile(r'(?:^|\n)(?P<level>#{1,6})(?P<header>(?:\\.|[^\\])*?)#*(?:\n|$)')
462
463 def test(self, parent: etree.Element, block: str) -> bool:
464 return bool(self.RE.search(block))
465
466 def run(self, parent: etree.Element, blocks: list[str]) -> None:
467 block = blocks.pop(0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected