‹›
markdown.extensions.abbr
¶
This extension adds abbreviation handling to Python-Markdown.
See the documentation for details.
‹›
markdown.extensions.abbr.AbbrExtension(**kwargs)
¶
Bases: Extension
Abbreviation Extension for Python-Markdown.
‹›
markdown.extensions.abbr.AbbrExtension.config
instance-attribute
¶
Default configuration options.
Defined Value:
self.config = {
'glossary': [
{},
'A dictionary where the `key` is the abbreviation and the `value` is the definition.'
"Default: `{}`"
],
}
‹›
markdown.extensions.abbr.AbbrExtension.reset_glossary()
¶
Clear all abbreviations from the glossary.
‹›
markdown.extensions.abbr.AbbrTreeprocessor(md: Markdown | None = None, abbrs: dict | None = None)
¶
Bases: Treeprocessor
Replace abbreviation text with <abbr>
elements.
‹›
markdown.extensions.abbr.AbbrBlockprocessor(parser: BlockParser, abbrs: dict)
¶
Bases: BlockProcessor
Parse text for abbreviation references.
‹›
markdown.extensions.abbr.AbbrInlineProcessor(pattern: str, title: str)
deprecated
¶
Bases: InlineProcessor
Deprecated
This class will be removed in the future; use AbbrTreeprocessor
instead.
Abbreviation inline pattern.