markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

toc of multiple files to one file

Open tomdavidson opened this issue 7 years ago • 1 comments

Hello, I would like to generate a toc from a directory of files and insert the toc into the project's readme file, but I do not quite understand how to use markdown-toc for this case. Can you provide an example?

thanks.

tomdavidson avatar Feb 15 '18 20:02 tomdavidson

We use markdown-include to create one markdown file from multiple source files, then create the TOC with markdown-toc, and then do another pass with markdown-include.

I just noticed markdown-include does TOC too, but I haven't tried that yet.

fniessink avatar May 25 '18 11:05 fniessink