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

Method test

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

Source from the content-addressed store, hash-verified

508 RE = re.compile(r'^.*?\n(?:=+|-+)[ ]*(\n|$)', re.MULTILINE)
509
510 def test(self, parent: etree.Element, block: str) -> bool:
511 return bool(self.RE.match(block))
512
513 def run(self, parent: etree.Element, blocks: list[str]) -> None:
514 lines = blocks.pop(0).split('\n', 2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected