1 I've got a wiki page that contains :
13 And `templates/bla.mdwn` contains :
23 If no `\[[!map]]` directive is anywhere in the template, the page is rendered as expected.
25 If `\[[!map]]` is used e.g. in content4, the wiki page is rendered with
26 the following elements :
28 > Surely you mean a toc directive, not map? --[[Joey]]
30 >> No, I really mean map, but I forgot to escape the toc above (in the example wiki page content), which prevented you from understanding my point. -- intrigeri
33 - every markdown code before the first `\[[!map]]` directive is not
34 interpreted and rendered as-is : `# header1 content1 # header2
35 content2 #header3 #header4 content4_before_the_map`
36 - the correctly rendered map directive result
38 If `\[[!map]]` is used in content3, the wiki page is rendered with
39 the following elements :
41 - a TOC containing only the last header (header4)
42 - every markdown code before the first `\[[!map]]` directive is not
43 interpreted and rendered as-is : `# header1 content1 # header2
44 content2 #header3 content3_before_the_map`
45 - content3 (starting at the map), header4 and content4 are all rendered as expected
47 Moving the `\[[!toc]]` directive from the page to the template gives the same results.
49 Removing the `\[[!toc]]` directive or moving it at the end of the page
50 makes the whole wiki page be rendered as expected.
52 Hint : in all cases, the non-interpreted markdown code is copied as-is
53 in the HTML output, without any leading `<p>` or any HTML formatting.