‹› 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.extendMarkdown(md)

Insert AbbrPreprocessor before ReferencePreprocessor.

‹› markdown.extensions.abbr.AbbrPreprocessor(parser: BlockParser)

Bases: BlockProcessor

Abbreviation Preprocessor - parse text for abbr references.

‹› markdown.extensions.abbr.AbbrPreprocessor.run(parent: etree.Element, blocks: list[str]) -> bool

Find and remove all Abbreviation references from the text. Each reference is set as a new AbbrPattern in the markdown instance.

‹› markdown.extensions.abbr.AbbrInlineProcessor(pattern: str, title: str)

Bases: InlineProcessor

Abbreviation inline pattern.