From 9652cdfe2eb16150518e34af33c8858118fe0a09 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Apr 2008 15:13:01 -0400 Subject: toc: Add the table of contents at sanitize time, rather than at format time. This allows the toc to be displayed when previewing an edit. It also avoids headers in the page template from showing up in the toc. --- doc/plugins/toc/discussion.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/plugins/toc') diff --git a/doc/plugins/toc/discussion.mdwn b/doc/plugins/toc/discussion.mdwn index dc622425a..a09ae5703 100644 --- a/doc/plugins/toc/discussion.mdwn +++ b/doc/plugins/toc/discussion.mdwn @@ -6,3 +6,5 @@ picks it up. I suppose it parses the entire page rather than just the rendered content. --[[JasonBlevins]] Why doesn't the TOC appear in the edit page preview? It only appears when the page is finally rendered. This makes it somewhat difficult to organize headings, saving & re-editing all the time. My user page currently has a toc to play with: --[[sabr]] + +> Fixed. --[[Joey]] -- cgit v1.2.3