markdown-toc
markdown-toc copied to clipboard
[feature request] ignore H1 tag if there is only one, and it is a the top of the page.
I think that is the purpose of depthFrom:1
. Try to set it to 2 and refresh your TOC (CTRL + ALT + U)?
@nicofrand depthFrom
option will just omit all the titles from a certain level.
Here a usecase: you get a # title
at the beginning of your file, and you want your TOC below it, you probably don't want this first titles in your TOC. Therfore, you might want a startFrom:2
option to be able to exclude 1 or more title from the TOC, starting from the beginning of the file.
There is a workaround: use =====
or -----
for h1
or h2
titles, they will not be included in the TOC. (See https://github.com/nok/markdown-toc/issues/62#issuecomment-182293322)