]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/undefined_tags_or_mismatched_tags_won__39__t_get_converted.mdwn
close; multimarkdown not enabled by default
[ikiwiki.git] / doc / bugs / undefined_tags_or_mismatched_tags_won__39__t_get_converted.mdwn
1 If you put in something such as undefined tags or mismatched tags in .mdwn file, ikiwiki will put &lt;p>&lt;/p> around them. But ikiwiki will NOT convert < and > to &amp;lt; and &amp;gt;! 
2
3      <section>
4
5      some text
6
7      </section>
8
9
10 the output html
11
12     <p><section></p> <p>some text</p> <p></section></p> 
13
14 And another example of mismatched tags:
15
16
17
18      <div>
19
20      some text
21
22      </div>
23      </div>
24
25
26 The out put is:
27
28     <div>
29
30     some text
31
32     </div>
33
34     <p></div></p>
35
36 > This is a bug in markdown. Actually, not converting `<` and `>` in tags is a
37 > markdown feature -- markdown allows inserting arbirary html, even if it's
38 > made-up tags. And putting paragraph tags around your `<section>` tag is
39 > understandable, since markdown can't know if `<section>` is intended to
40 > be a block-level tag or not. The bug is that it puts the `<p>` around the
41 > trailing `<div>` -- it does know what a div is, and it should know that's
42 > illegal and not do it. I've filed a [bug report](http://bugs.debian.org/459269) about that issue
43 > alone. If you feel the other things you brought up are bugs, please talk
44 > to the markdown maintainer. --[[Joey]]
45
46 [[!tag done]]