◐ Shell
clean mode source ↗

GitHub - bennycode/hexo-insert-toc: Small plugin to insert a table of contents (TOC) in Hexo posts and pages.

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

This repository was archived by the owner on Mar 23, 2026. It is now read-only.

hexo-insert-toc

Small plugin to insert a table of contents (TOC) in Hexo posts and pages by placing a <!-- toc --> in your Markdown files.

Configuration

The basic options from markdown-toc are supported. Simply add them to your Hexo config file using the property "hexo-insert-toc".

Example

_config.json

{
  "hexo-insert-toc": {
    "maxdepth": 2
  }
}

Compatibility

Tested with Hexo v6.1.0.