ChristianFrisson / idyll-plugins

Place for defining Idyll compiler post-processing transforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents plugin

Installation

$ npm install --save-dev idyll-plugin-table-of-contents

Add it to your idyll configuration in package.json:

"idyll": {
  "compiler": {
    "postProcessors": ["idyll-plugin-table-of-contents"]
  }
}

Usage

To use the plugin place [TableOfContents /] where you want the table of contents to appear in your document.

This plugin uses section headers to determine section heirarchy on your page.

About

Place for defining Idyll compiler post-processing transforms.

License:MIT License


Languages

Language:JavaScript 98.7%Language:CSS 1.3%Language:HTML 0.0%