From a9f1171d3bd7908fbcfd3df0b7b36c9dd7c4607c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Fern=C3=A1ndez?= Date: Tue, 1 Sep 2015 17:29:37 +0200 Subject: Add toc_depth parameter to toc extension --- docs/extensions/toc.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') diff --git a/docs/extensions/toc.md b/docs/extensions/toc.md index e358132..5038428 100644 --- a/docs/extensions/toc.md +++ b/docs/extensions/toc.md @@ -134,3 +134,11 @@ The following options are provided to configure the output: * **`separator`**: Word separator. Character which replaces white space in id. Defaults to "`-`". + +* **`toc_depth`** + Define up to which section level "n" (`

` to ``, where `1 <= n <= 6`) + to include in the Table of Contents. Defaults to `6`. + + When used with conjunction with `baselevel` this parameter will limit the + resulting (adjusted) heading. That is, if both `toc_depth` and `baselevel` + are 3, then only the highest level will be present in the table. -- cgit v1.2.3