(self, parent, block)
| 118 | LIST_TYPES = ['ul', 'ol'] |
| 119 | |
| 120 | def test(self, parent, block): |
| 121 | return block.startswith(' '*markdown.TAB_LENGTH) and \ |
| 122 | not self.parser.state.isstate('detabbed') and \ |
| 123 | (parent.tag in self.ITEM_TYPES or \ |
| 124 | (len(parent) and parent[-1] and \ |
| 125 | (parent[-1].tag in self.LIST_TYPES) |
| 126 | ) |
| 127 | ) |
| 128 | |
| 129 | def run(self, parent, blocks): |
| 130 | block = blocks.pop(0) |