From c5fa6b13aacd31ccbfa8fca18871cb4a4ffdad49 Mon Sep 17 00:00:00 2001 From: John Heidemann Date: Tue, 12 Jul 2011 14:51:14 -0700 Subject: [PATCH 1/3] pass img tags through --- PLUGIN/mediawiki.pm | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/PLUGIN/mediawiki.pm b/PLUGIN/mediawiki.pm index a8665f8..eecf1c8 100644 --- a/PLUGIN/mediawiki.pm +++ b/PLUGIN/mediawiki.pm @@ -482,6 +482,8 @@ sub htmlize (@) qw(del ins), # These should have been added all along. qw(span), # Mediawiki allows span but that's rather scary...? qw(a), # this is unfortunate; should handle links after rendering the page. + # also unfortunate + qw(img) ], allowed_attrs => [ @@ -499,6 +501,8 @@ sub htmlize (@) qw(id class name style), # For CSS # Our additions qw(href), + # img tags + qw(src alt width height class) ], }, { -- 1.7.6