kramit v0.0.1 Kramit.TOC
Core goal of this module is to contruct a table of contents automatically for long form writing.
The Markdown syntax for calling this is #toc
What this will do is:
- Scan the document for any h2 headings
- Make each an html section out of every inbetween space
- Give an id to each html section that has a ‘handleized’ version of the h2 title
- Inserts a nav element with the id table-of-contents