gitbook-plugin-toc-ng

0.0.2 • Public • Published

gitbook-plugin-toc-ng

An enhanced version of gitbook-plugin-toc.

Note: All titles must come with a pre-defined ID to prevent hash conflicts, this is a major difference from the original gitbook plugin.

1. Configure book.json

{
	"plugins": ["toc-ng"],
	"pluginsConfig": {
		"toc": {
			"addClass": true,
			"className": "toc"
		}
	}
}

2. Install the plugin

In terminal, invoke the following command

gitbook install

A complete markdown example

<!-- toc -->

# titleA {#titleA}

whatever

## titleB {#titleB}

whatever

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gitbook-plugin-toc-ng

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    3.12 kB

    Total Files

    4

    Last publish

    Collaborators

    • openrasp