Home | History | Annotate | Download | only in markdown

Lines Matching refs:blocks

5 This parser handles basic parsing of Markdown blocks.  It doesn't concern itself
7 blocks, lists, quotes, etc.
11 as they need to alter how markdown blocks are parsed.
80 def run(self, parent, blocks):
95 the list of blocks.
100 * ``blocks``: A list of all remaining blocks of the document.
129 def run(self, parent, blocks):
130 block = blocks.pop(0)
187 """ Process code blocks. """
192 def run(self, parent, blocks):
194 block = blocks.pop(0)
199 # new code blocks, append this block to the previous, adding back
212 # line. Insert these lines as the first block of the master blocks
214 blocks.insert(0, theRest)
224 def run(self, parent, blocks):
225 block = blocks.pop(0)
236 # Previous block was a blockquote so set that as this blocks parent
255 """ Process ordered list blocks. """
268 def run(self, parent, blocks):
270 items = self.get_items(blocks.pop(0))
324 """ Process unordered list blocks. """
339 def run(self, parent, blocks):
340 block = blocks.pop(0)
355 blocks.insert(0, after)
370 def run(self, parent, blocks):
371 lines = blocks.pop(0).split('\n')
380 # Block contains additional lines. Add to master blocks for later.
381 blocks.insert(0, '\n'.join(lines[2:]))
396 def run(self, parent, blocks):
397 lines = blocks.pop(0).split('\n')
414 # Add lines after hr to master blocks for later parsing.
415 blocks.insert(0, '\n'.join(lines))
419 """ Process blocks and start with an empty line. """
428 def run(self, parent, blocks):
429 block = blocks.pop(0)
432 # Add remaining line to master blocks for later.
433 blocks.insert(0, block[m.end():])
442 """ Process Paragraph blocks. """
447 def run(self, parent, blocks):
448 block = blocks.pop(0)