From e16746a52f40f478af1b634c532d90c25cc0ec76 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 28 Aug 2006 07:40:20 +0000 Subject: * Add toc (table of contents) plugin. --- doc/plugins/toc.mdwn | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 doc/plugins/toc.mdwn (limited to 'doc/plugins') diff --git a/doc/plugins/toc.mdwn b/doc/plugins/toc.mdwn new file mode 100644 index 000000000..57bd622ba --- /dev/null +++ b/doc/plugins/toc.mdwn @@ -0,0 +1,13 @@ +[[template id=plugin name=toc included=1 author="Joey Hess"]] +[[tag type/chrome]] + +Add a table of contents be to a page: + + \[[toc ]] + +The table of contents will be automatically generated based on the +headers of the page. By default only the largest headers present on the +page will be shown; to control how many levels of headers are shown, use +the `levels` parameter: + + \[[toc levels=2]] -- cgit v1.2.3