2008-01-04 10:38:18 +01:00
If you put in something such as undefined tags or mismatched tags in .mdwn file, ikiwiki will put <p></p> around them. But ikiwiki will NOT convert < and > to &lt; and &gt;!
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
<section>
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
some text
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
</section>
2008-01-04 10:33:26 +01:00
the output html
2008-01-04 10:34:58 +01:00
<p><section></p> <p>some text</p> <p></section></p>
2008-01-04 10:33:26 +01:00
And another example of mismatched tags:
2008-01-04 10:34:58 +01:00
<div>
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
some text
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
</div>
</div>
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
The out put is:
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
<div>
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
some text
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
</div>
2008-01-04 10:33:26 +01:00
2008-01-04 10:34:58 +01:00
<p></div></p>
2008-01-05 07:47:57 +01:00
> This is a bug in markdown. Actually, not converting `<` and `>` in tags is a
> markdown feature -- markdown allows inserting arbirary html, even if it's
> made-up tags. And putting paragraph tags around your `<section>` tag is
> understandable, since markdown can't know if `<section>` is intended to
> be a block-level tag or not. The bug is that it puts the `<p>` around the
> trailing `<div>` -- it does know what a div is, and it should know that's
> illegal and not do it. I've filed a [bug report](http://bugs.debian.org/459269) about that issue
> alone. If you feel the other things you brought up are bugs, please talk
> to the markdown maintainer. --[[Joey]]
2008-07-21 13:31:04 +02:00
[[!tag done]]