# Table of Contents (masonjames)

> A delightful heading-driven table of contents plugin for EmDash CMS.

Source: https://emdashcmseverything.com/plugins/emdash-table-of-contents/

- Category: Editor Experience
- Status: available
- Version: 0.1.3
- Price: Unknown
- Compatibility: EmDash ^0.1.0
- License: MIT
- Maintainer: Mason James
- Download: https://www.npmjs.com/package/emdash-table-of-contents
- Repository: https://github.com/masonjames/emdash-table-of-contents
- Published: 2026-11-01

A delightful heading-driven table of contents plugin for EmDash CMS.

## Installation

Install the package from npm:

```bash
npm install emdash-table-of-contents
```

Register the plugin in your Astro config:

```ts
import { defineConfig } from "astro/config";
import { emdash } from "emdash/astro";
import { tableOfContentsPlugin } from "emdash-table-of-contents";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [tableOfContentsPlugin()],
    }),
  ],
});
```

## Details

- **Latest version:** 0.1.3
- **License:** MIT
- **Publisher:** Mason James
- **Requires:** EmDash `^0.1.0`
- **Source repository:** [https://github.com/masonjames/emdash-table-of-contents](https://github.com/masonjames/emdash-table-of-contents)
- **npm package:** [emdash-table-of-contents](https://www.npmjs.com/package/emdash-table-of-contents)
