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

Method test

markdown/blockprocessors.py:120–127  ·  view source on GitHub ↗
(self, parent, block)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

isstateMethod · 0.80

Tested by

no test coverage detected