Skip to content

Astro pages don't have ToC and heading anchor links #30

Closed
@Fernando-A-Rocha

Description

@Fernando-A-Rocha

Our custom Astro pages in pages/ (not the Starlight pages in content/docs) display the StarlightPage component.

In all of them we are disabling the table of contents. This is because starlight doesn't recognize the <h2>, <h3> etc headings to place them automatically in a table of contents.

See the scripting introduction article https://wiki.preview.multitheftauto.com/articles/scripting-introduction which is a regular starlight page to see how the table of contents is generated from markdown headings and works fine.

see the issue I opened at starlight repo: withastro/starlight#3234

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions