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

Method reset

markdown/extensions/abbr.py:56–60  ·  view source on GitHub ↗

Clear all previously defined abbreviations.

(self)

Source from the content-addressed store, hash-verified

54 self.glossary = {}
55
56 def reset(self):
57 """ Clear all previously defined abbreviations. """
58 self.abbrs.clear()
59 if (self.glossary):
60 self.abbrs.update(self.glossary)
61
62 def reset_glossary(self):
63 """ Clear all abbreviations from the glossary. """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected