MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / run

Method run

markdown/blockprocessors.py:431–441  ·  view source on GitHub ↗
(self, parent, blocks)

Source from the content-addressed store, hash-verified

429 return bool(self.RE.match(block))
430
431 def run(self, parent, blocks):
432 block = blocks.pop(0)
433 m = self.RE.match(block)
434 if m:
435 # Add remaining line to master blocks for later.
436 blocks.insert(0, block[m.end():])
437 sibling = self.lastChild(parent)
438 if sibling and sibling.tag == 'pre' and sibling[0] and \
439 sibling[0].tag == 'code':
440 # Last block is a codeblock. Append to preserve whitespace.
441 sibling[0].text = markdown.AtomicString('%s/n/n/n' % sibling[0].text )
442
443
444class ParagraphProcessor(BlockProcessor):

Callers

nothing calls this directly

Calls 5

lastChildMethod · 0.80
popMethod · 0.45
matchMethod · 0.45
insertMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected