class Treeprocessor(util.Processor): (source)
Known subclasses: markdown.extensions.attr_list.AttrListTreeprocessor
, markdown.extensions.codehilite.HiliteTreeprocessor
, markdown.extensions.footnotes.FootnotePostTreeprocessor
, markdown.extensions.footnotes.FootnoteTreeprocessor
, markdown.extensions.legacy_attrs.LegacyAttrs
, markdown.extensions.toc.TocTreeprocessor
, markdown.treeprocessors.InlineProcessor
, markdown.treeprocessors.PrettifyTreeprocessor
, markdown.treeprocessors.UnescapeTreeprocessor
Treeprocessors are run on the ElementTree object before serialization. Each Treeprocessor implements a "run" method that takes a pointer to an ElementTree, modifies it as necessary and returns an ElementTree object. Treeprocessors must extend markdown.Treeprocessor.
Method | run |
Subclasses of Treeprocessor should implement a `run` method, which takes a root ElementTree. This method can return another ElementTree object, and the existing root ElementTree will be replaced, or it can modify the current tree and return None. |
Inherited from Processor
:
Method | __init__ |
Undocumented |
Instance Variable | md |
Undocumented |
markdown.extensions.attr_list.AttrListTreeprocessor
, markdown.extensions.codehilite.HiliteTreeprocessor
, markdown.extensions.footnotes.FootnotePostTreeprocessor
, markdown.extensions.footnotes.FootnoteTreeprocessor
, markdown.extensions.legacy_attrs.LegacyAttrs
, markdown.extensions.toc.TocTreeprocessor
, markdown.treeprocessors.InlineProcessor
, markdown.treeprocessors.PrettifyTreeprocessor
, markdown.treeprocessors.UnescapeTreeprocessor
Subclasses of Treeprocessor should implement a `run` method, which takes a root ElementTree. This method can return another ElementTree object, and the existing root ElementTree will be replaced, or it can modify the current tree and return None.