https://github.com/bennycode/hexo-insert-toc
Small plugin to insert a table of contents (TOC) in Hexo posts and pages.
https://github.com/bennycode/hexo-insert-toc
hexo plugin toc
Last synced: 4 months ago
JSON representation
Small plugin to insert a table of contents (TOC) in Hexo posts and pages.
- Host: GitHub
- URL: https://github.com/bennycode/hexo-insert-toc
- Owner: bennycode
- Created: 2022-05-03T23:02:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-11T20:52:55.000Z (over 2 years ago)
- Last Synced: 2025-06-17T11:02:15.619Z (6 months ago)
- Topics: hexo, plugin, toc
- Language: JavaScript
- Homepage:
- Size: 194 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# hexo-insert-toc
Small plugin to insert a table of contents (TOC) in Hexo posts and pages by placing a `` in your Markdown files.
## Configuration
The [basic options](https://github.com/jonschlinkert/markdown-toc#options) from [markdown-toc](https://github.com/jonschlinkert/markdown-toc) are supported. Simply add them to your [Hexo config file](https://hexo.io/docs/configuration.html) using the property "hexo-insert-toc".
### Example
**\_config.json**
```json
{
"hexo-insert-toc": {
"maxdepth": 2
}
}
```
## Compatibility
Tested with [Hexo](https://hexo.io/) v6.1.0.