markup/tableofcontents: Add config option for ordered list

This commit is contained in:
Gavin D. Howard 2019-12-11 23:48:40 -07:00 committed by Bjørn Erik Pedersen
parent 8c2bd1a620
commit 3974c326c6
2 changed files with 6 additions and 2 deletions

View File

@ -70,4 +70,7 @@ startLevel
: The heading level, values starting at 1 (`h1`), to start render the table of contents.
endLevel
: The heading level, inclusive, to stop render the table of contents.
: The heading level, inclusive, to stop render the table of contents.
ordered
: Whether or not to generate an ordered list instead of an unordered list.

View File

@ -1387,7 +1387,8 @@
},
"tableOfContents": {
"startLevel": 2,
"endLevel": 3
"endLevel": 3,
"ordered": false
},
"goldmark": {
"renderer": {