ToC for Bard & Markdown (Table of Contents) Icon

ToC for Bard & Markdown (Table of Contents)

1.9

July 30th, 2026

Führt die beiden offenen Bugfix-PRs #33 und #34 zusammen.

Behoben

  • Überschriften in verschachtelten Bard-Sets (Spalten, Grids, Replicator) werden jetzt gefunden. Vorher wurde nur die oberste Ebene gescannt.
  • Überschriften mit Inline-Formatierung behalten ihren vollen Text (#26). Vorher fiel eine Überschrift, die mit fett, kursiv oder Link beginnt, komplett aus der Liste, und eine mit Formatierung in der Mitte wurde abgeschnitten.
  • Keine Fatals mehr bei unsauberem Bard-Content: fehlende attrs, fehlender, leerer oder skalarer content und nicht-numerische Level werden übersprungen.
  • from() weitet die Level-Spanne nicht mehr auf, wenn es nach depth() oder zweimal aufgerufen wird.

Neu

  • exclude-Parameter am Tag: kommaseparierte Titel (Teilstring, case-insensitiv) oder ein Regex-Muster.

    {{ toc exclude#89DDFF;">=#89DDFF;">"Einleitung, Fußnoten#89DDFF;">" }}
    {{ toc exclude#89DDFF;">=#89DDFF;">"/^Anhang/i#89DDFF;">" }}

Intern

  • Die CI-Zeile für Statamic 5 lief nicht mehr: Composer installiert keine laravel/framework-Version unter 12 mehr, alle tragen ungepatchte Security-Advisories. Statamic 5 wird jetzt auf Laravel 12 getestet.
  • Drei Testklassen liefen unter PHPUnit 12 gar nicht, weil Doc-Comment-Annotationen dort nicht mehr gelesen werden. Die Suite geht von 20 auf 42 Tests.

Keine Breaking Changes. Alle Template-Variablen und Parameter bleiben unverändert.

1.8

April 8th, 2026

What's Changed

  • Allow installation on Statamic v6 by @j6s in https://github.com/goldnead/statamic-toc/pull/32

New Contributors

  • @j6s made their first contribution in https://github.com/goldnead/statamic-toc/pull/32

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.7...v1.8

1.7

February 24th, 2025

Changes

Set default values for parent and has_children: Default values have been added in the Parser class to ensure parent is null and has_children is false, improving code robustness.

1.6

October 15th, 2024

  • remove Dependency of TidyPHP Extension
  • Improve handling of headings even when hierarchy structure isn't "correct". Avoids Error dumps.

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.5...v1.6

1.5

July 9th, 2024

This release updates the dependencies and tests to ensure it runs properly on Statamic 5.

1.4

May 13th, 2023

Ensure through testing that Statamic 4 is still compatible.

1.3.1

October 29th, 2022

  • N/A Changelog not available.

1.3.0

October 29th, 2022

  • N/A Changelog not available.

1.2.0

June 7th, 2022

  • Thanks @jonassiewertsen for extending the testing matrix to statamic 3.3 and fixing some stuff in the readme.

What's Changed

  • Support Statamic 3.3 by @jonassiewertsen in https://github.com/goldnead/statamic-toc/pull/14
  • Fix typo in readme by @jonassiewertsen in https://github.com/goldnead/statamic-toc/pull/15
  • Fix readme examples by @jonassiewertsen in https://github.com/goldnead/statamic-toc/pull/16

New Contributors

  • @jonassiewertsen made their first contribution in https://github.com/goldnead/statamic-toc/pull/14

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.1.0...v1.2.0

1.1.0

December 30th, 2021

What's Changed

  • Make Addon work with markdown content by @goldnead in https://github.com/goldnead/statamic-toc/pull/13

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.0.10...v1.1.0

1.0.10

December 30th, 2021

What's Changed

  • Write Unit-tests by @goldnead in https://github.com/goldnead/statamic-toc/pull/12

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.0.9...v1.0.10

1.0.9

November 9th, 2021

Fixes possible duplicate contents from being outputted when using multiple tags (including {{ toc:count }}).

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.0.8...v1.0.9

1.0.8

November 8th, 2021

Fix wrong tree-output-bug introduced with last fix.

1.0.7

November 8th, 2021

Fix the counting result of total_results and the {{ toc:count }} tag.

1.0.6

November 8th, 2021

What's Changed

  • v1.0.6 by @goldnead in https://github.com/goldnead/statamic-toc/pull/11

Full Changelog: https://github.com/goldnead/statamic-toc/compare/v1.0.3...v1.0.6

1.0.5

July 8th, 2021

  • Fix somehow messed-up releases

1.0.4

July 8th, 2021

  • Add from support

1.0.3

July 8th, 2021

Fix Bug, where ToC-Tag did not output a list.

1.0.2

July 7th, 2021

Now, it's possible to also use the "HTML"-Mode in bard and still use this addon. Check the Readme for further details.

1.0.1

July 6th, 2021

First Patch!

1.0.0

July 6th, 2021

Initial Release