diff --git a/r2/r2/lib/filters.py b/r2/r2/lib/filters.py index dea74ed4d..1da8911b5 100644 --- a/r2/r2/lib/filters.py +++ b/r2/r2/lib/filters.py @@ -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: