[Feature] Replace TOC comment in place on a folder
gedw99 opened this issue · 2 comments
gedw99 commented
Looks for an annotation in a markdown file that represents the TOC
Use markdown comments to indicate where the TOC is to be placed in a file.
A markdown file would look like this:
TOC START comment
the actual toc
TOC END comment
The logic steps are:
-
Walk files
-
For each .md
-
Find the TOC comment annotation in that .md
-
Create the toc.
-
Inject into the markdown one line below the TOC and another annotation of TOC END
- The TOC END is important because it tells the logic where the insert ends.
cgrindel commented
gedw99 commented
It’s ok I wrote a golang func to do it.
I know Barzel but don’t want to use it