Skip to content

Commit c701357

Browse files
committed
added documentation to features.md
Signed-off-by: Gereon Dusella <git@gereondusella.de>
1 parent 1248bc9 commit c701357

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

public/docs/features.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ View
8282
## Table of Contents:
8383
You can look at the bottom right section of the view area, there is a _ToC_ button <i class="fa fa-bars"></i>.
8484
Pressing that button will show you a current _Table of Contents_, and will highlight which section you're at.
85-
ToCs support up to **three header levels**.
85+
ToCs support up to **five header levels**, the **default** is **set to three**. The maxLevel can be set for each note by using
86+
[YAML Metadata](./yaml-metadata)
8687

8788
## Permalink
8889
Every header will automatically add a permalink on the right side.
@@ -133,12 +134,19 @@ You can provide advanced note information to set the browser behavior (visit abo
133134
- GA: set to use Google Analytics
134135
- disqus: set to use Disqus
135136
- slideOptions: setup slide mode options
137+
- toc: set options of the Table of Contents.
136138

137139
## ToC:
138-
Use the syntax `[TOC]` to embed table of content into your note.
140+
Use the syntax `[TOC]` to embed table of content into your note. By default, three header levels are displayed. This can also be specified by using [YAML Metadata](./yaml-metadata).
139141

140142
[TOC]
141143

144+
You can also specify the number of header levels by specifying the `maxLevel` like this: `[TOC maxLevel=1]`
145+
146+
[TOC maxLevel=1]
147+
148+
149+
142150
## Emoji
143151
You can type any emoji like this :smile: :smiley: :cry: :wink:
144152
> See full emoji list [here](http://www.emoji-cheat-sheet.com/).

0 commit comments

Comments
 (0)