hexo-insert-toc

1.1.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    31
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    31
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.0
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i hexo-insert-toc

Weekly Downloads

31

Version

1.1.2

License

MIT

Unpacked Size

3.55 kB

Total Files

6

Last publish

Collaborators

  • bennycode