Skip to content

[Bug]: Headers (TOC) are not generated in some cases #2692

@hjkcai

Description

@hjkcai

Version

System:
    OS: Linux 6.7 Arch Linux
    CPU: (32) x64 AMD EPYC 7K62 48-Core Processor
    Memory: 47.19 GB / 62.79 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  npmPackages:
    rspress: ^1.45.8 => 1.45.8

Details

As the title, headers/TOC are not generated, resulting no TOC rendered.

Image

Reproduce link

https://rspress.rs/guide/default-theme/components

Reproduce Steps

Not sure how this is reproduced. I'm still figuring it out in my local repo.

However this can be reproduced in the official doc repo. The page below has no TOC.

The search index JSON file has TOC!!

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions