diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-28 07:40:20 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-28 07:40:20 +0000 |
commit | e16746a52f40f478af1b634c532d90c25cc0ec76 (patch) | |
tree | 2ef03282413737d0fed459903b176ea96e6267c0 /doc/plugins/toc.mdwn | |
parent | e5b323a6331df4f400ea5a3eaa82441f85d41950 (diff) |
* Add toc (table of contents) plugin.
Diffstat (limited to 'doc/plugins/toc.mdwn')
-rw-r--r-- | doc/plugins/toc.mdwn | 13 |
1 files changed, 13 insertions, 0 deletions
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]] |