Initiate Extension and set up configs.
(self, **kwargs)
| 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. """ |