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

Headings that contain `_` or `-` characters get broken links in the toc #115

Open ahuffman opened 5 years ago

ahuffman commented 5 years ago

You can test with this file if you wish: https://github.com/ahuffman/ansible-sudoers/blob/2.0.0/README.md

I find if I have headings with underscores or dashes the links in the toc does not get generated properly. Sometimes they're missing the underscores in the link. I manually update these typically as a work-around and turn off auto-updating the toc.

sgpinkus commented 3 years ago

@ahuffman Try https://atom.io/packages/atom-mdtoc