Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idyll-lang/idyll-plugin-table-of-contents

Table of contents plugin
https://github.com/idyll-lang/idyll-plugin-table-of-contents

Last synced: 14 days ago
JSON representation

Table of contents plugin

Awesome Lists containing this project

README

        

# Table of Contents plugin

## Installation

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

Add it to your idyll configuration in `package.json`:

```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.