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

Method test

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

Source from the content-addressed store, hash-verified

562 """ Process blocks that are empty or start with an empty line. """
563
564 def test(self, parent: etree.Element, block: str) -> bool:
565 return not block or block.startswith('\n')
566
567 def run(self, parent: etree.Element, blocks: list[str]) -> None:
568 block = blocks.pop(0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected