markdown-it-toc-asd
markdown-it 用于向markdown文档添加目录的插件
用法Usage
启用插件Enable plugin
var md = html: true linkify: true typography: true; // <-- this use(package_name) is required
例子Example
[toc]
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:
h1 Heading ... ... ......h1 Heading
还可以通过css样式为标题添加头部触角:
效果:
Testing
To run the tests use:
make test