Compatible GitHub Action for TOC enforcement
It's a good extension for table of contents, when editing it from VSCode. But the question is - if someone is to use github.dev to make edits to a markdown file and forget making a table-of-contents change, how to automatically verify it? how to automatically create a TOC entry? could you make https://github.com/yzhang-gh/vscode-markdown/blob/master/src/toc.ts more library-friendly?
Ideally - there would be a github action and npx script to do this
Hi, sorry for the late reply. That's an interesting topic, something like a CLI TOC "formatter". It requires some effort but the problem is I may not have the time.
I'll probably end up writing it in Go...
Would be much easier to write a script and copy-paste some of the useful code snippets from this repository (instead of reshaping this one).