Preserve attributes for conversion

This commit is contained in:
Matthew Tretter
2012-06-29 13:39:54 -04:00
parent 8cef2c64ca
commit 489217527d

View File

@@ -43,8 +43,10 @@ class MarkdownConverter(object):
text += tail
node.clear()
while len(node):
del node[0]
node.text = text
node.tail = ''
def __getattr__(self, attr):
# Handle heading levels > 2