MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
Generate TOC (table of contents) of headlines from parsed markdown file.
<a id="markdown-header" name="header"></a>
# A 1
→ #a-1
depthFrom:1
and depthTo:6
withLinks:true
updateOnSave:true
orderedList:true
ext install markdown-toc
Tips:Section of header is begin with depthFrom
attributes | values | defaults |
---|---|---|
depthFrom | uint(1-6) | 1 |
depthTo | uint(1-6) | 6 |
insertAnchor | bool | false |
withLinks | bool | true |
orderedList | bool | false |
updateOnSave | bool | true |
anchorMode | github.com/bitbucket.org/ghost.org/gitlab.com | github.com |
To change the default configuration settings for the Markdown-TOC extension, edit the user or workspace settings as described here. The available settings are as follows:
attributes | values | defaults |
---|---|---|
markdown-toc.depthFrom | number(1-6) | 1 |
markdown-toc.depthTo | number(1-6) | 6 |
markdown-toc.insertAnchor | bool | false |
markdown-toc.withLinks | bool | true |
markdown-toc.orderedList | bool | false |
markdown-toc.updateOnSave | bool | true |
markdown-toc.anchorMode | enum | github.com |
If you want to use a unique setting for a file, you can add attributes to <!-- TOC -->
, just like:
<!-- TOC depthFrom:2 orderedList:true -->
<!-- /TOC -->
If you have any question, you can contact with me:
The package is Open Source Software released under the MIT License. It’s developed by AlanWalk.