Allows you to enable/disable the toc transformation of @[toc]
tocClassName
(default: "markdownIt-TOC")
Option to customize html class of the <ul> wrapping the toc. If no class is wanted set to null.
tocFirstLevel
(default: 1)
Allows you to skip some heading level. Example: use 2 if you want to skip <h1>
from the TOC.
tocLastLevel
(default: 6)
Allows you to skip some heading level. Example: use 5 if you want to skip <h6>
from the TOC.
tocCallback
(default: null)
Allows you to get toc contents externally by executing a callback function returning toc elements, in addition / instead of using @[toc] tag in content.
Example :
Allows you to enable/disable the anchor link in the headings
anchorLinkSymbol
(default: "#")
Allows you to customize the anchor link symbol
anchorLinkSpace
(default: true)
Allows you to enable/disable inserting a space between the anchor link and heading.
anchorLinkSymbolClassName
(default: null)
Allows you to customize the anchor link symbol class name. If not null, symbol will be rendered as <span class="anchorLinkSymbolClassName">anchorLinkSymbol</span>.
anchorLinkBefore
(default: true)
Allows you to prepend/append the anchor link in the headings
anchorLinkPrefix
(default: undefined)
Allows you to add a prefix to the generated header ids, e.g. section-.
anchorClassName
(default: "markdownIt-Anchor")
Allows you to customize the anchor link class. If no class is wanted set to null.
wrapHeadingTextInAnchor
(default: false)
Makes the entire heading into the anchor link (takes precedence over anchorLinkSymbol and anchorLinkBefore)
resetIds
(default: true)
Allows you to reset (or not) ids incrementation. Use it if you will have multiple
documents on the same page.
请发表评论