markdown.extensions.def_list
§
Adds parsing of Definition Lists to Python-Markdown.
See the documentation for details.
Classes:
-
DefListProcessor–Process Definition Lists.
-
DefListIndentProcessor–Process indented children of definition list items.
-
DefListExtension–Add definition lists to Markdown.
markdown.extensions.def_list.DefListProcessor(parser: BlockParser)
§
markdown.extensions.def_list.DefListIndentProcessor(*args)
§
Bases: ListIndentProcessor
Process indented children of definition list items.
Methods:
-
create_item–Create a new
ddorli(depending on parent) and parse the block with it as the parent.
Attributes:
-
ITEM_TYPES–Include
ddin list item types. -
LIST_TYPES–Include
dlis list types.
markdown.extensions.def_list.DefListIndentProcessor.ITEM_TYPES
class-attribute
instance-attribute
§
markdown.extensions.def_list.DefListIndentProcessor.LIST_TYPES
class-attribute
instance-attribute
§
markdown.extensions.def_list.DefListIndentProcessor.create_item(parent: etree.Element, block: str) -> None
§
Create a new dd or li (depending on parent) and parse the block with it as the parent.
markdown.extensions.def_list.DefListExtension(**kwargs)
§
Bases: Extension
Add definition lists to Markdown.
Methods:
-
extendMarkdown–Register the processors.
markdown.extensions.def_list.DefListExtension.extendMarkdown(md)
§
Register the processors.
| Class Instance | Registry | Name | Priority |
|---|---|---|---|
DefListIndentProcessor |
blockprocessors |
defindent |
85 |
DefListProcessor |
blockprocessors |
deflist |
25 |