Skip to content

Support anchor links in TOC block #245

@andybroomfield

Description

@andybroomfield

The TOC block works with ID's added to the H2, either automatically via auto heading ids Custom heading filter plugin.
It's also possible to add them in manually in the source editor.

When using CKEditor Anchor Link these are added either as invisible anchors or within the h2. Currently these won't be picked up by the TOC block.

This might be a common way authors add anchor links. We could either

  • Support this first party in the TOC block
  • Add an alter hook or event subscriber interface to allow custom modules to provide their own discovered anchor links.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions