aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/Toc_map_and_template_plugins_do_not_play_well_together.mdwn
blob: 4849edd63c65e3a369a54cddc786bc0d3596d756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
The following renders incorrectly:

	\[[!toc ]]

	# header1

	content1

	# header2

	\[[!map pages="sandbox"]]


Removing the `\[[!toc]]` directive or moving it at the end of the page
makes the whole wiki page be rendered as expected.

Hint : in all cases, the non-interpreted markdown code is copied as-is
in the HTML output, without any leading `<p>` or any HTML formatting.

> You're using the old version of `markdown`, that is known to have a broken block
> html parser, that will get confused if markdown is present between two
> separate html blocks, and not format the markdown.
> 
> This is fixed in [[!cpan Text::MarkDown]] 1.0.19. markdown 1.0.2 also
> fixes the problem. Install either one. I'm going to make ikiwiki's
> dependencies list Text::Markdown before markdown, since people keep
> stumbling over this. (The downside is that the old broken markdown is
> faster). --[[Joey]]

[[done]]