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 186a5ebfca
commit 4c804319f6
6 changed files with 68 additions and 13 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": {