]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/__60__br__62___tags_are_removed_from_markdown_inline_HTML.mdwn
Proposed patch for plugins/osm
[ikiwiki.git] / doc / bugs / __60__br__62___tags_are_removed_from_markdown_inline_HTML.mdwn
1 I am trying to add a post address to a document:
2
3 <address>
4   First line<br/>
5   Second line
6 </address>
7
8 As you can see, the `<br/>` is being removed. I disabled [[plugins/htmlscrubber]], but that was not it. The [markdown Dingus](http://daringfireball.net/projects/markdown/dingus) on its homepage processes the inline HTML just fine.
9
10 I tried searching the web and wiki but could not find any information on why <br/> would be removed.
11
12 > It does work if you use `<br />`:
13 >
14 > First line<br />
15 > Second line
16 >
17 > Or, as we've just been told in #ikiwiki: put two spaces at the end of the first line.
18 >
19 > First line  
20 > Second line
21 >
22 > --[[tschwinge]]
23
24 > > `<br/>` is also valid, so this is a bug still. --[[madduck]]
25
26 >>> It _is_ the htmlscrubber that removes that. It's due to [[!debbug 365971]], 
27 >>> basically the [[!cspan HTML::Scrubber]] doesn't understand xhtml tags
28 >>> of this sort at all, I hacked it to support `<br />` by tellig it to treak 
29 >>> the "/" as an attribute, but if there's no space, it doesn't see it as 
30 >>> an attribute. Hmm, I could also add `br` as a tag name, that would catch both cases.
31 >>> Ok, [[done]] --[[Joey]]