| 1131 | RE_TITLE_CLEAN = re.compile(r'\s') |
| 1132 | |
| 1133 | def __init__(self, pattern: str, md: Markdown | None = None): |
| 1134 | super().__init__(pattern, md) |
| 1135 | # The text `getText` last saw and the closing bracket for each index of it. |
| 1136 | self._bracket_data: str | None = None |
| 1137 | self._bracket_ends: list[int | None] = [] |
| 1138 | |
| 1139 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element | None, int | None, int | None]: |
| 1140 | """ Return an `a` [`Element`][xml.etree.ElementTree.Element] or `(None, None, None)`. """ |