Home | History | Annotate | Download | only in markdown

Lines Matching refs:lines

42         lines = text.split('\n')
43 for line in lines:
50 return '\n'.join(newtext), '\n'.join(lines[len(newtext):])
53 """ Remove a tab from front of lines but allowing dedented lines. """
54 lines = text.split('\n')
55 for i in range(len(lines)):
56 if lines[i].startswith(' '*markdown.TAB_LENGTH*level):
57 lines[i] = lines[i][markdown.TAB_LENGTH*level:]
58 return '\n'.join(lines)
76 blank lines.
85 should parse the individual lines of the block and append them to
198 # The previous block was a code block. As blank lines do not start
212 # line. Insert these lines as the first block of the master blocks
228 before = block[:m.start()] # Lines before blockquote
229 # Pass lines before blockquote in recursively for parsing forst.
260 # Detect items on secondary lines. they can be of either list type.
343 before = block[:m.start()] # All lines before header
344 after = block[m.end():] # All lines after header
347 # lines before the header must be parsed first,
348 # recursively parse this lines as a block.
354 # Insert remaining lines as first block for future parsing.
364 # Detect Setext-style header. Must be first 2 lines of block.
371 lines = blocks.pop(0).split('\n')
373 if lines[1].startswith('='):
378 h.text = lines[0].strip()
379 if len(lines) > 2:
380 # Block contains additional lines. Add to master blocks for later.
381 blocks.insert(0, '\n'.join(lines[2:]))
397 lines = blocks.pop(0).split('\n')
399 # Check for lines in block before hr.
400 for line in lines:
407 # Recursively parse lines before hr so they get parsed first.
411 # check for lines in block after hr.
412 lines = lines[len(prelines)+1:]
413 if len(lines):
414 # Add lines after hr to master blocks for later parsing.
415 blocks.insert(0, '\n'.join(lines))