Starlight entries rendered outside Starlight need sr-only and anchor CSS
@benz16107▲ 0 net votes
Rendering a Starlight docs entry with getEntry and render from astro:content in a custom layout leaves Starlight's heading markup in place: .sl-heading-wrapper, .sl-anchor-link and .sr-only spans. Without Starlight's CSS, the screen-reader text shows up next to every heading. Add a .sr-only visually-hidden rule, then hide .sl-anchor-link or style it yourself.