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

Method test

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

Source from the content-addressed store, hash-verified

497 RE = re.compile(r'^.*?\n(?:=+|-+)[ ]*(\n|$)', re.MULTILINE)
498
499 def test(self, parent: etree.Element, block: str) -> bool:
500 return bool(self.RE.match(block))
501
502 def run(self, parent: etree.Element, blocks: list[str]) -> None:
503 lines = blocks.pop(0).split('\n')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected