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

Method load_glossary

markdown/extensions/abbr.py:66–69  ·  view source on GitHub ↗

Adds `dictionary` to our glossary. Any abbreviations that already exist will be overwritten.

(self, dictionary: dict[str, str])

Source from the content-addressed store, hash-verified

64 self.glossary.clear()
65
66 def load_glossary(self, dictionary: dict[str, str]):
67 """Adds `dictionary` to our glossary. Any abbreviations that already exist will be overwritten."""
68 if dictionary:
69 self.glossary = {**dictionary, **self.glossary}
70
71 def extendMarkdown(self, md):
72 """

Callers 2

extendMarkdownMethod · 0.95
test_abbr_glossary_2Method · 0.95

Calls

no outgoing calls

Tested by 1

test_abbr_glossary_2Method · 0.76