‹›
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.DefListIndentProcessor(*args)
¶
Bases: ListIndentProcessor
Process indented children of definition list items.
Methods:
-
create_item
–Create a new
dd
orli
(depending on parent) and parse the block with it as the parent.
Attributes:
-
ITEM_TYPES
–Include
dd
in list item types. -
LIST_TYPES
–Include
dl
is list types.
‹›
markdown.extensions.def_list.DefListIndentProcessor.ITEM_TYPES
class-attribute
instance-attribute
¶
Include dd
in list item types.
Defined Value:
ITEM_TYPES = ['dd', 'li']
‹›
markdown.extensions.def_list.DefListExtension(**kwargs)
¶
Bases: Extension
Add definition lists to Markdown.
Methods:
-
extendMarkdown
–Add an instance of
DefListProcessor
toBlockParser
.