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

Method __init__

markdown/extensions/abbr.py:93–96  ·  view source on GitHub ↗
(self, md: Markdown | None = None, abbrs: dict | None = None)

Source from the content-addressed store, hash-verified

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. '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected