Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions plugins/table-of-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ githubUrl: https://github.com/jdsteinbach/eleventy-plugin-toc
description: This Eleventy plugin will generate a TOC from page content using an
Eleventy filter.
---

## Default Options

```js
Expand All @@ -29,7 +28,7 @@ description: This Eleventy plugin will generate a TOC from page content using an
### 1. Install the plugin

```bash
npm i --save eleventy-plugin-toc
npm i --save-dev eleventy-plugin-toc
```

### 2. Add the plugin to Eleventy config
Expand All @@ -54,7 +53,7 @@ module.exports = function (eleventyConfig) {
</article>
<aside>
{{ content | toc }}
</article>{% endraw %}
</aside>{% endraw %}
```

### 4. Override default options if necessary
Expand Down