markdown_souptest: Allow img attributes through.

This commit is contained in:
Neil Williams
2013-01-28 11:03:55 -08:00
parent 03022931ca
commit ef398ccbac

View File

@@ -175,14 +175,14 @@ class SouptestSaxHandler(ContentHandler):
markdown_ok_tags = {
'div': ('class'),
'a': set(('href', 'title', 'target', 'nofollow', 'rel')),
'img': set(('src', 'alt')),
}
markdown_boring_tags = ('p', 'em', 'strong', 'br', 'ol', 'ul', 'hr', 'li',
'pre', 'code', 'blockquote', 'center',
'sup', 'del', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',)
markdown_user_tags = ('table', 'th', 'tr', 'td', 'tbody', 'img',
markdown_user_tags = ('table', 'th', 'tr', 'td', 'tbody',
'tbody', 'thead', 'tr', 'tfoot', 'caption')
for bt in markdown_boring_tags: