]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/Toc_map_and_template_plugins_do_not_play_well_together.mdwn
web commit by intrigeri: answer + fix escaping in example wiki page
[ikiwiki.git] / doc / bugs / Toc_map_and_template_plugins_do_not_play_well_together.mdwn
index a919e522fd2e8b26f8d44f66a551fa14dded81a2..f49d14f9bb5b082595f45e686a70d0368a6f3301 100644 (file)
@@ -1,6 +1,6 @@
 I've got a wiki page that contains :
 
-       [[!toc ]]
+       \[[!toc ]]
        
        # header1
        
@@ -20,11 +20,15 @@ And `templates/bla.mdwn` contains :
        
        content4
 
-If no `[[!map]]` directive is anywhere in the template, the page is rendered as expected.
+If no `\[[!map]]` directive is anywhere in the template, the page is rendered as expected.
 
-If `[[!map]]` is used e.g. in content4, the wiki page is rendered with
+If `\[[!map]]` is used e.g. in content4, the wiki page is rendered with
 the following elements :
 
+> Surely you mean a toc directive, not map? --[[Joey]]
+
+>> 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
+
 - an empty toc div
 - every markdown code before the first `\[[!map]]` directive is not
   interpreted and rendered as-is : `# header1 content1 # header2