(self, parent: etree.Element, block: str)
| 35 | NO_INDENT_RE = re.compile(r'^[ ]{0,3}[^ :]') |
| 36 | |
| 37 | def test(self, parent: etree.Element, block: str) -> bool: |
| 38 | # A definition calls `parseBlocks` on its content, which can contain |
| 39 | # further definitions, so the nesting has to stop short of the |
| 40 | # interpreter's limit, as it does for blockquotes and lists. |
| 41 | return bool(self.RE.search(block)) and not util.nearing_recursion_limit() |
| 42 | |
| 43 | def run(self, parent: etree.Element, blocks: list[str]) -> bool | None: |
| 44 |