gitbook-plugin-section

0.0.5 • Public • Published

gitbook-plugin-section

This plugin will add table of content to the page and provide navigation function inside a page.

Add <!-- toc --> to the markdown files. When you build the book, it will insert a table of content where you insert <!-- toc -->

book.json Config:

{
    "plugins": ["section"],
    "pluginsConfig": {
        "section": {
            "addClass": true,
            "className": "tsection"
        }
    }
}

You can add this config to add a HTML ClassName to the Section ul element

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i gitbook-plugin-section

    Weekly Downloads

    2

    Version

    0.0.5

    License

    MIT

    Last publish

    Collaborators

    • tancy