| 1 |
--- |
| 2 |
icon: lucide/house |
| 3 |
--- |
| 4 |
# PyMdown Extensions |
| 5 |
|
| 6 |
## Overview |
| 7 |
|
| 8 |
PyMdown Extensions is a collection of extensions for Python Markdown. They were originally written to make writing |
| 9 |
documentation more enjoyable. They cover a wide range of solutions, and while not every extension is needed by all |
| 10 |
people, there is usually at least one useful extension for everybody. |
| 11 |
|
| 12 |
## Usage |
| 13 |
|
| 14 |
All extensions are found under the module namespace of `pymdownx`. Assuming we wanted to specify the use of the |
| 15 |
MagicLink extension, we would include it in Python Markdown like so: |
| 16 |
|
| 17 |
```pycon3 |
| 18 |
>>> import markdown |
| 19 |
>>> text = "A link https://google.com" |
| 20 |
>>> html = markdown.markdown(text, extensions=['pymdownx.magiclink']) |
| 21 |
'<p>A link <a href="https://google.com">https://google.com</a></p>' |
| 22 |
``` |
| 23 |
|
| 24 |
Check out documentation on each extension to learn more about how to configure and use each one. |
| 25 |
|
| 26 |
/// important | Reminder |
| 27 |
Please read the [Usage Notes](usage_notes.md) for information on extension compatibility and general notes to be |
| 28 |
aware of when using these extensions. |
| 29 |
/// |
| 30 |
|
| 31 |
## Extensions |
| 32 |
|
| 33 |
| Extensions | |
| 34 |
------------------------------------------------------------- | ------------------------------------------------------- | ------ |
| 35 |
[Arithmatex](extensions/arithmatex.md) | [B64](extensions/b64.md) | [BetterEm](extensions/betterem.md) |
| 36 |
[Blocks: Admonition](extensions/blocks/plugins/admonition.md) | [Blocks: Caption](extensions/blocks/plugins/caption.md) | [Blocks: Definition](extensions/blocks/plugins/definition.md) |
| 37 |
[Blocks: Details](extensions/blocks/plugins/details.md) | [Blocks: HTML](extensions/blocks/plugins/html.md) | [Blocks: Tab](extensions/blocks/plugins/tab.md) |
| 38 |
[Caret](extensions/caret.md) | [Critic](extensions/critic.md) | [Emoji](extensions/emoji.md) |
| 39 |
[EscapeAll](extensions/escapeall.md) | [Extra](extensions/extra.md) | [FancyLists](extensions/fancylists.md) |
| 40 |
[Highlight](extensions/highlight.md) | [InlineHilite](extensions/inlinehilite.md) | [Keys](extensions/keys.md) |
| 41 |
[Legacy: Details](extensions/details.md) | [Legacy: Tabbed](extensions/tabbed.md) | [MagicLink](extensions/magiclink.md) |
| 42 |
[Mark](extensions/mark.md) | [PathConverter](extensions/pathconverter.md) | [ProgressBar](extensions/progressbar.md) |
| 43 |
[Quotes](extensions/quotes.md) | [SaneHeaders](extensions/saneheaders.md) | [SmartSymbols](extensions/smartsymbols.md) |
| 44 |
[Snippets](extensions/snippets.md) | [StripHTML](extensions/striphtml.md) | [SuperFences](extensions/superfences.md) |
| 45 |
[Tasklist](extensions/tasklist.md) | [Tilde](extensions/tilde.md) | |