]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Weird_interaction_between_toc_plugin_and_page_sections.mdwn
also confused
[ikiwiki.git] / doc / bugs / Weird_interaction_between_toc_plugin_and_page_sections.mdwn
1 [[!meta title="Weird interaction between toc plugin and markdown that follows"]]
2
3 <http://vcs-pkg.org/people/> goes really weird when I enable the `toc` plugin. It renders the page sections fine without it, but as soon as I turn it on, the following output is generated:
4
5     \[[!meta  title="My Name"]]
6
7       1. Fedora
8       2. Ubuntu
9       3. People grouped by version control system
10       4. GNU Arch (tla/baz)
11       5. Bazaar-NG
12       6. Git users
13       7. Mercurial
14       8. Subversion
15       9. Everyone, sorted by first name
16
17     People grouped by distro ======================== Debian ––
18
19         * jelmer
20         * madduck
21
22     Fedora
23
24 I have no idea what's eating the first two headers. But as you can see from the current page, it's not just headers by any markdown...
25
26 --[[madduck]]
27
28 > This is a markdown bug. It occurs with 1.0.1, but not with the 1.0.2
29 > beta. Apparently markdown is getting confused by the div inserted for the
30 > toc, not realizing that it has ended, and so not marking up the text as
31 > markdown. 1.0.2 fixes many such div-related markdown bugs. I have to call
32 > this [[done]] since it's not an ikiwiki bug, recommend upgrading markdown
33 > if the slower speed of 1.0.2 doesn't hurt too badly. --[[Joey]]
34
35 >> Note how it works on <http://madduck.net/docs/mailfilter/> but adding a rule like in that doc to the people page didn't fix it.
36
37 >>> Yes, it's probably confused by the two divs so close to each other, and
38 >>> doesn't realize that the text in between is not part of either and is
39 >>> markdown. Problem is that the old markdown doesn't have a real html
40 >>> parser, it just fakes it --[[Joey]]