blockquote tag conversion

This commit is contained in:
Matthew Tretter
2012-07-06 21:09:48 -04:00
parent 03191a6b1d
commit 7f391f8e9a
2 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import re
convert_heading_re = re.compile(r'convert_h(\d+)')
line_beginning_re = re.compile(r'^', re.MULTILINE)
whitespace_re = re.compile(r'[\r\n\s\t ]+')
@@ -79,6 +80,9 @@ class MarkdownConverter(object):
def convert_b(self, el):
return self.convert_strong(el)
def convert_blockquote(self, el):
return line_beginning_re.sub('> ', el.text) if el.text else ''
def convert_br(self, el):
return ' \n'