This templates can be used in conjunction with pandoc
to generate an HTML page with a autoscrolling TOC menu showed at top-left corner of the page.
Please scroll down the sample page to see the toc in action.
Download toc-template.html
and copy it into the pandoc
templates directory, usually (in *nix systems) under ~/.pandoc/templates/
See
pandoc
documentation to install a template in your system. You can typepandoc -v
to know where is located this templates directory
Use it just like any other pandoc
template
For instance
pandoc example.md -o example.html --toc --highlight-style pygments --filter pandoc-latex-environment -s --template=toc-template.html
Thanks to https://github.com/ryangrose/easy-pandoc-templates for his inspiration
Made with ❤️ in Burriana