Python Markdown offers a flexible extension mechanism, which makes it possible to change and/or extend the behavior of the parser without having to edit the actual source files.
To use an extension, pass it to markdown with the
markdown.markdown(some_text, extensions=[MyExtension(), 'path.to.my.ext', 'markdown.extensions.footnotes'])
See the Library Reference for more details.
From the command line, specify an extension with the
$ python -m markdown -x markdown.extensions.footnotes -x markdown.extensions.tables input.txt > output.html
See the Command Line docs or use the
--help option for more details.
If you would like to write your own extensions, see the Extension API for details.
Officially Supported Extensions¶
The extensions listed below are included with (at least) the most recent release and are officially supported by Python-Markdown. Any documentation is maintained here and all bug reports should be made to the project. If you have a typical install of Python-Markdown, these extensions are already available to you using the "name" listed in the second column below.
|Fenced Code Blocks||
|New Line to Break||
|Table of Contents||
Third Party Extensions¶
Various individuals and/or organizations have developed extensions which they have made available to the public. A list of third party extensions is maintained on the wiki for your convenience. The Python-Markdown team offers no official support for these extensions. Please see the developer of each extension for support.
There are 0 discussions relevant for this page, and 0 discussions in the whole project.