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

Method __init__

markdown/extensions/abbr.py:42–54  ·  view source on GitHub ↗

Initiate Extension and set up configs.

(self, **kwargs)

Source from the content-addressed store, hash-verified

40 """ Abbreviation Extension for Python-Markdown. """
41
42 def __init__(self, **kwargs):
43 """ Initiate Extension and set up configs. """
44 self.config = {
45 'glossary': [
46 {},
47 'A dictionary where the `key` is the abbreviation and the `value` is the definition.'
48 "Default: `{}`"
49 ],
50 }
51 """ Default configuration options. """
52 super().__init__(**kwargs)
53 self.abbrs = {}
54 self.glossary = {}
55
56 def reset(self):
57 """ Clear all previously defined abbreviations. """

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected