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

Does not skip commented sections #105

Open janrod opened 6 years ago

janrod commented 6 years ago

When some sections in the document are commented they are still included in the TOC. They should be skipped.

myurasov commented 6 years ago

Adds my python comments to TOC – frustrating...

flakrat commented 5 years ago

Same with Shell examples:

## Command run as root, this command and the following line will be treated as an H2 and H1 by markdown-toc
# systemctl reboot

## Command run as normal user 
$ uptime