Skip to content

Heading class rework needs changelog entry and migration note #137

@patdhlk

Description

@patdhlk

Found in: #121

Problem

The heading class logic in _toctree_fix was reworked:

  • Removed even/odd/last classes from <h1>/<h2> headings
  • Moved those classes to a sibling <span> element
  • Added new heading-N and anchor-before-heading classes

This changes the HTML output structure. Any user with custom CSS targeting h2.even, h2.last, etc. will be broken.

Action needed

  • Add a changelog entry documenting the change
  • Add a migration note explaining what CSS selectors need updating

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions