]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
* htmlscrubber: Further work around #365971 by adding tags for 'br/', 'hr/'
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 23:32:50 +0000 (18:32 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 7 Jan 2008 23:32:50 +0000 (18:32 -0500)
  and 'p/'.

IkiWiki/Plugin/htmlscrubber.pm
debian/changelog
doc/bugs/__60__br__62___tags_are_removed_from_markdown_inline_HTML.mdwn

index 4245c879cdefa12f127306a0136fdfdc1d00164f..bc613f92477ef55ef384f8a1bbf2887670c0e7a7 100644 (file)
@@ -24,11 +24,11 @@ sub scrubber { #{{{
        # With html 5 video and audio tags added.
        $_scrubber = HTML::Scrubber->new(
                allow => [qw{
        # With html 5 video and audio tags added.
        $_scrubber = HTML::Scrubber->new(
                allow => [qw{
-                       a abbr acronym address area b big blockquote br
+                       a abbr acronym address area b big blockquote br br/
                        button caption center cite code col colgroup dd del
                        dfn dir div dl dt em fieldset font form h1 h2 h3 h4
                        button caption center cite code col colgroup dd del
                        dfn dir div dl dt em fieldset font form h1 h2 h3 h4
-                       h5 h6 hr i img input ins kbd label legend li map
-                       menu ol optgroup option p pre q s samp select small
+                       h5 h6 hr hr/ i img input ins kbd label legend li map
+                       menu ol optgroup option p p/ pre q s samp select small
                        span strike strong sub sup table tbody td textarea
                        tfoot th thead tr tt u ul var
                        video audio
                        span strike strong sub sup table tbody td textarea
                        tfoot th thead tr tt u ul var
                        video audio
index 84219d267ebe9aaa09cb24295eee436efed91742..1b83595e77c122f120581f55fe63fca5c73e3679 100644 (file)
@@ -9,6 +9,8 @@ ikiwiki (2.19) UNRELEASED; urgency=low
   * opendiscussion: allow editing of the toplevel discussion page,
     and, indirectly, allow creating new discussion pages.
   * Add a prereq on Data::Dumper 2.11 or better, needed to dump q// objects.
   * opendiscussion: allow editing of the toplevel discussion page,
     and, indirectly, allow creating new discussion pages.
   * Add a prereq on Data::Dumper 2.11 or better, needed to dump q// objects.
+  * htmlscrubber: Further work around #365971 by adding tags for 'br/', 'hr/'
+    and 'p/'.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 07 Jan 2008 15:35:16 -0500
 
 
  -- Joey Hess <joeyh@debian.org>  Mon, 07 Jan 2008 15:35:16 -0500
 
index f329d520887743b7de5d4d59923b19ece3985b06..e30c4c9c847b7bd30d88edaed2ad9e7d0262a469 100644 (file)
@@ -22,3 +22,10 @@ I tried searching the web and wiki but could not find any information on why <br
 > --[[tschwinge]]
 
 > > `<br/>` is also valid, so this is a bug still. --[[madduck]]
 > --[[tschwinge]]
 
 > > `<br/>` is also valid, so this is a bug still. --[[madduck]]
+
+>>> It _is_ the htmlscrubber that removes that. It's due to [[debbug 365971]], 
+>>> basically the [[cspan HTML::Scrubber]] doesn't understand xhtml tags
+>>> of this sort at all, I hacked it to support `<br />` by tellig it to treak 
+>>> the "/" as an attribute, but if there's no space, it doesn't see it as 
+>>> an attribute. Hmm, I could also add `br` as a tag name, that would catch both cases.
+>>> Ok, [[done]] --[[Joey]]