nok / markdown-toc

Generate and update magically a table of contents based on the headlines of a parsed markdown file.
MIT License
68 stars 37 forks source link

Items in ``` ``` <- code blocks get inferred as headings when there are `#` comment lines #114

Open ahuffman opened 5 years ago

ahuffman commented 5 years ago

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.

rugk commented 4 years ago

Duplicate of https://github.com/nok/markdown-toc/issues/97