Small plugin to insert a table of contents (TOC) in Hexo posts and pages.
Small plugin to insert a table of contents (TOC) in Hexo posts and pages by placing a <!-- toc -->
in your Markdown files.
The basic options from markdown-toc are supported. Simply add them to your Hexo config file using the property "hexo-insert-toc".
_config.json
{
"hexo-insert-toc": {
"maxdepth": 2
}
}
Tested with Hexo v6.1.0.