Pandoc Tricks · jgm/pandoc Wiki
e.g. you have a long markdown file in GitHub and want to have a TOC, you can use pandoc -t gfm --toc -o example-with-toc.md example.md
This a useful workaround to update the TOC of very long documents, but—beware!—if you use this trick for writing over the input file, you'll end stacking TOCs—each new Table of Contents being generated above the previously built ones, and indexing them too. This technique is useful when working with different source and output files.
Read full article from Pandoc Tricks · jgm/pandoc Wiki
No comments:
Post a Comment