MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / DefListIndentProcessor

Class DefListIndentProcessor

markdown/extensions/def_list.py:76–85  ·  view source on GitHub ↗

Process indented children of definition list items.

Source from the content-addressed store, hash-verified

74 blocks.insert(0, theRest)
75
76class DefListIndentProcessor(markdown.blockprocessors.ListIndentProcessor):
77 """ Process indented children of definition list items. """
78
79 ITEM_TYPES = ['dd']
80 LIST_TYPES = ['dl']
81
82 def create_item(parent, block):
83 """ Create a new dd and parse the block with it as the parent. """
84 dd = markdown.etree.SubElement(parent, 'dd')
85 self.parser.parseBlocks(dd, [block])
86
87
88

Callers 1

extendMarkdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected