]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/undefined_tags_or_mismatched_tags_won__39__t_get_converted.mdwn
docs
[git.ikiwiki.info.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;! 
3      <section>
5      some text
7      </section>
10 the output html
12     <p><section></p> <p>some text</p> <p></section></p> 
14 And another example of mismatched tags:
18      <div>
20      some text
22      </div>
23      </div>
26 The out put is:
28     <div>
30     some text
32     </div>
34     <p></div></p>
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]]
46 [[!tag done]]