An open API service indexing awesome lists of open source software.

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.

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.