DEV Community

Discussion on: 20+ Lessons I've Learned Writing on DEV for 4 Years

Collapse
 
bcouetil profile image
Benoit COUETIL πŸ’«

Thanks for sharing.

Links in your ToC do not work...

Did you try this ?

GitHub logo derlin / bitdowntoc

Online and command-line Markdown TOC generator, with built-in support for BitBucket Server, GitHub, Gitlab, dev.to and more!

BitDownToc

BitDownToc

BitDownToc adds a table of contents (TOC) to your Markdown files, either online or from the command line It supports Gitlab and GitHub styles, and can generate anchors to comply with Bitbucket Server (and its lack of proper markdown support), dev.to and more.

Thanks to small comments (in HTML or liquid tags), it can also detect previously generated TOC so you can run it every time you change your README without worries. In other words, it is idempotent 🀩.

It supports English, French, and most Latin languages, but not Cyrillic or Chinese!


Try it out now!
✨✨ derlin.github.io/bitdowntoc/ ✨✨


TOC (generated by this tool, duh, using the github profile):





I'm very satisfied by this tool.

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

Thanks Benoit, that's a great idea.
I even contributed an issue on Forem to make something like BitDownToc part of Forem

github.com/forem/forem/discussions...