markdown-it-toc
markdown-it plugin for adding a table of contents to markdown documents
Usage
Enable plugin
var md = html: true linkify: true typography: true; // <-- this use(package_name) is required
Example
@[toc](Title)
Adding this tag with add anchors to each <h[n]>
tag on your document, and will add a <ul>
of hyperlinks pointing to these places on the page.
The end results looks like:
Title Heading 1 ... ... ......Heading 1
Testing
To run the tests use:
make test