From da7aad08e354a621b4b983dd2f76ac02e2c35527 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 20 Mar 2008 17:02:59 -0400 Subject: [PATCH] web commit by http://jblevins.org/: A note about the toc plugin and headers in templates --- doc/plugins/toc/discussion.mdwn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/plugins/toc/discussion.mdwn b/doc/plugins/toc/discussion.mdwn index 3d4c2b149..d1600c9ec 100644 --- a/doc/plugins/toc/discussion.mdwn +++ b/doc/plugins/toc/discussion.mdwn @@ -1 +1,6 @@ -If you are using the sidebar plugin and have a header in the sidebar it shows up in the table of contents. I can see why this happens but it surprised me and wasn't the desired effect in my specific situation. -- [[AdamShand]] \ No newline at end of file +If you are using the sidebar plugin and have a header in the sidebar it shows up in the table of contents. I can see why this happens but it surprised me and wasn't the desired effect in my specific situation. -- [[AdamShand]] + +A related side effect: If you use any sort of headers in the page +template (such as placing the page title in an `

`), the toc plugin +picks it up. I suppose it parses the entire page rather than just the +rendered content. --[[JasonBlevins]] -- 2.45.2