Process indented children of definition list items.
| 74 | blocks.insert(0, theRest) |
| 75 | |
| 76 | class 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 |