dereklputnam 61d09421a6 Add support for headings inside wrap blocks (#133)
Modified processPostContent to find headings in two locations:
1. Direct descendants of body (existing behavior)
2. Inside .wrap blocks (new - for email filtering via [wrap=no-email])

This allows table of contents to include headings that are wrapped for
email filtering purposes, which is a common use case in Discourse.

The headings are combined and sorted by document order to maintain proper
structure in the TOC.
2026-01-13 01:22:48 +01:00
2025-11-11 16:13:59 +01:00
2025-10-09 13:56:19 +01:00
2022-06-17 18:20:09 +02:00
2024-10-14 09:33:20 +02:00
2024-01-16 17:41:09 +01:00
2024-10-16 13:45:09 +08:00
2025-02-24 11:26:00 +08:00
2025-10-09 13:56:19 +01:00
2025-10-09 13:56:19 +01:00
2022-06-17 18:20:09 +02:00
2024-02-28 15:17:06 +01:00

DiscoTOC

A Discourse theme component that generates a table of contents for topics with one click

https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143

S
Description
No description provided
Readme MIT
1,012 KiB
Languages
JavaScript 53%
Ruby 32.1%
SCSS 14.9%