Table of Contents

Auto-generated nested table of contents from Portable Text headings.

Plugin

Table of Contents

Auto-generated nested table of contents from Portable Text headings.

  • Category: Content
  • Status: available
  • Version: 1.0.0
  • Price: Free
  • Compatibility: EmDash CMS
  • Maintainer: PlugDash

Long posts deserve navigation. Automatically generates a nested table of contents from Portable Text headings. Ships a companion Astro component that works with no configuration.

Installation

pnpm add @plugdash/tocgen

Register in your EmDash config and use the provided Astro component in your templates.

Usage scenarios

  • Long-form content — help readers find what they came for.
  • Documentation sites — automatic navigation from heading structure.
  • Knowledge bases — consistent ToC without manual maintenance.