0.0.2 • Published 5 years ago

gitbook-plugin-toc-ng v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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