Home | History | Annotate | Download | only in markdown

Lines Matching full:markdown

2 CORE MARKDOWN BLOCKPARSER
5 This parser handles basic parsing of Markdown blocks. It doesn't concern itself
11 as they need to alter how markdown blocks are parsed.
16 import markdown
44 if line.startswith(' '*markdown.TAB_LENGTH):
45 newtext.append(line[markdown.TAB_LENGTH:])
56 if lines[i].startswith(' '*markdown.TAB_LENGTH*level):
57 lines[i] = lines[i][markdown.TAB_LENGTH*level:]
116 INDENT_RE = re.compile(r'^(([ ]{%s})+)'% markdown.TAB_LENGTH)
121 return block.startswith(' '*markdown.TAB_LENGTH) and \
155 li = markdown.etree.SubElement(parent, 'li')
163 indent_level = len(m.group(1))/markdown.TAB_LENGTH
190 return block.startswith(' '*markdown.TAB_LENGTH)
203 code.text = markdown.AtomicString('%s\n%s\n' % (code.text, block.rstrip()))
206 pre = markdown.etree.SubElement(parent, 'pre')
207 code = markdown.etree.SubElement(pre, 'code')
209 code.text = markdown.AtomicString('%s\n' % block.rstrip())
240 quote = markdown.etree.SubElement(parent, 'blockquote')
277 p = markdown.etree.SubElement(lst[-1], 'p')
281 li = markdown.etree.SubElement(lst, 'li')
288 lst = markdown.etree.SubElement(parent, self.TAG)
293 if item.startswith(' '*markdown.TAB_LENGTH):
298 li = markdown.etree.SubElement(lst, 'li')
312 if items[-1].startswith(' '*markdown.TAB_LENGTH):
351 h = markdown.etree.SubElement(parent, 'h%d' % len(m.group('level')))
377 h = markdown.etree.SubElement(parent, 'h%d' % level)
410 hr = markdown.etree.SubElement(parent, 'hr')
438 sibling[0].text = markdown.AtomicString('%s/n/n/n' % sibling[0].text )
459 p = markdown.etree.SubElement(parent, 'p')