markdown.extensions
¶
Modules:
-
abbr
–
Abbreviation Extension for Python-Markdown
-
admonition
–
Admonition extension for Python-Markdown
-
attr_list
–
Attribute List Extension for Python-Markdown
-
codehilite
–
CodeHilite Extension for Python-Markdown
-
def_list
–
Definition List Extension for Python-Markdown
-
extra
–
Python-Markdown Extra Extension
-
fenced_code
–
Fenced Code Extension for Python Markdown
-
footnotes
–
Footnotes Extension for Python-Markdown
-
legacy_attrs
–
Legacy Attributes Extension
-
legacy_em
–
Legacy Em Extension for Python-Markdown
-
md_in_html
–
Python-Markdown Markdown in HTML Extension
-
meta
–
Meta Data Extension for Python-Markdown
-
nl2br
–
NL2BR
Extension -
sane_lists
–
Sane List Extension for Python-Markdown
-
smarty
–
Smarty extension for Python-Markdown
-
tables
–
Tables Extension for Python-Markdown
-
toc
–
Table of Contents Extension for Python-Markdown
-
wikilinks
–
WikiLinks Extension for Python-Markdown
Classes:
-
Extension
–
Base class for extensions to subclass.
markdown.extensions.Extension(**kwargs)
¶
Base class for extensions to subclass.
Methods:
-
extendMarkdown
–
Add the various processors and patterns to the Markdown Instance.
-
getConfig
–
Return a setting for the given key or an empty string.
-
getConfigInfo
–
Return all
config
descriptions as a list of tuples. -
getConfigs
–
Return all configs settings as a dict.
-
setConfig
–
Set a
config
setting forkey
with the givenvalue
. -
setConfigs
–
Set multiple
config
settings given a dict or list of tuples.
markdown.extensions.Extension.extendMarkdown(md: Markdown)
¶
Add the various processors and patterns to the Markdown Instance.
This method must be overridden by every extension.
Parameters:
-
md
(
Markdown
) –The Markdown instance.
markdown.extensions.Extension.getConfig(key, default = '')
¶
Return a setting for the given key or an empty string.
markdown.extensions.Extension.getConfigInfo()
¶
Return all config
descriptions as a list of tuples.
markdown.extensions.Extension.getConfigs()
¶
Return all configs settings as a dict.
markdown.extensions.Extension.setConfig(key, value)
¶
Set a config
setting for key
with the given value
.
markdown.extensions.Extension.setConfigs(items)
¶
Set multiple config
settings given a dict or list of tuples.