Return an `a` [`Element`][xml.etree.ElementTree.Element] of `group(1)`.
(self, m: re.Match[str], data: str)
| 1423 | class AutolinkInlineProcessor(InlineProcessor): |
| 1424 | """ Return a link Element given an auto-link (`<http://example/com>`). """ |
| 1425 | def handleMatch(self, m: re.Match[str], data: str) -> tuple[etree.Element, int, int]: |
| 1426 | """ Return an `a` [`Element`][xml.etree.ElementTree.Element] of `group(1)`. """ |
| 1427 | el = etree.Element("a") |
| 1428 | el.set('href', self.unescape(m.group(1))) |
| 1429 | el.text = util.AtomicString(m.group(1)) |
| 1430 | return el, m.start(0), m.end(0) |
| 1431 | |
| 1432 | |
| 1433 | class AutomailInlineProcessor(InlineProcessor): |