# ‹› `markdown.extensions.admonition`

Adds rST-style admonitions. Inspired by rST feature with the same name.

See the documentation for details.

## ‹› `markdown.extensions.admonition.AdmonitionExtension(**kwargs)`

Bases: `Extension`

Admonition extension for Python-Markdown.

### ‹› `markdown.extensions.admonition.AdmonitionExtension.extendMarkdown(md)`

Add Admonition to Markdown instance.

## ‹› `markdown.extensions.admonition.AdmonitionProcessor(parser: blockparser.BlockParser)`

Bases: `BlockProcessor`

### ‹› `markdown.extensions.admonition.AdmonitionProcessor.parse_content(parent: etree.Element, block: str) -> tuple[etree.Element | None, str, str]`

Get sibling admonition.

Retrieve the appropriate sibling element. This can get tricky when dealing with lists.