PHPackages                             cms-alchemy/toc-inline - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cms-alchemy/toc-inline

ActiveDrupal-module

cms-alchemy/toc-inline
======================

Adds a \[toc\] token that generates a table of contents from headings in Drupal content.

v1.0.1(1mo ago)00GPL-2.0-or-laterPHP

Since Mar 30Pushed 1mo agoCompare

[ Source](https://github.com/DanielMoody/toc_inline)[ Packagist](https://packagist.org/packages/cms-alchemy/toc-inline)[ RSS](/packages/cms-alchemy-toc-inline/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

ToC Inline
==========

[](#toc-inline)

Adds a `[toc]` token that generates a table of contents from headings (``–``) in the content.

Overview
--------

[](#overview)

ToC Inline is a lightweight Drupal filter plugin that scans rendered HTML for headings and replaces a `[toc]` token with a structured table of contents and is enabled automatically by the install script for Basic Html and Full HTML.

It is designed for editorial convenience—drop a token, get a working ToC with anchor links. No blocks, no Views, no extra configuration overhead.

Features
--------

[](#features)

- Uses `[toc]` token anywhere in content
- Automatically scans ``–`` tags
- Generates unique IDs for headings when missing
- Deduplicates existing IDs safely
- Builds nested lists based on heading levels
- Outputs accessible markup (``)
- No JavaScript required (server-side rendering)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/991582a25b97e57d7515e394e19dcb6dd8c1875d2ce1e76cec695e4f92ac6408?d=identicon)[CMS\_Alchemy](/maintainers/CMS_Alchemy)

---

Top Contributors

[![DanielMoody](https://avatars.githubusercontent.com/u/231975106?v=4)](https://github.com/DanielMoody "DanielMoody (8 commits)")

### Embed Badge

![Health badge](/badges/cms-alchemy-toc-inline/health.svg)

```
[![Health](https://phpackages.com/badges/cms-alchemy-toc-inline/health.svg)](https://phpackages.com/packages/cms-alchemy-toc-inline)
```

###  Alternatives

[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
