markdown-toc
markdown-toc copied to clipboard
Items in ``` ``` <- code blocks get inferred as headings when there are `#` comment lines
You can test with this markdown file if you wish. I had to turn off auto-updates on save and manually fix up some of the toc: https://github.com/ahuffman/ansible-sudoers/blob/2.0.0/README.md
Basically the config examples in code blocks get headings inferred due to the # comment lines.
Duplicate of https://github.com/nok/markdown-toc/issues/97