(self, md: Markdown | None = None, abbrs: dict | None = None)
| 91 | """ Replace abbreviation text with `<abbr>` elements. """ |
| 92 | |
| 93 | def __init__(self, md: Markdown | None = None, abbrs: dict | None = None): |
| 94 | self.abbrs: dict = abbrs if abbrs is not None else {} |
| 95 | self.RE: re.RegexObject | None = None |
| 96 | super().__init__(md) |
| 97 | |
| 98 | def create_element(self, title: str, text: str, tail: str) -> etree.Element: |
| 99 | ''' Create an `abbr` element. ''' |