Open
Description
Describe the bug
If two headings are immediately following eachother, the second heading is rendered on the same line as the first.
This is visible on the Virtualizer page, where there is an h2 followed by an h3

This seems to be a CSS issue, as these headers are wrapped in <a>
tags, which might be being rendered inline. This might be an issue with the TanStack docs generation instead of virtual
itself, as the markdown for this page looks pretty normal: https://github.com/TanStack/virtual/blob/main/docs/api/virtualizer.md
Observed on Chromium
Your minimal, reproducible example
https://tanstack.com/virtual/latest/docs/api/virtualizer
Steps to reproduce
- Go to https://tanstack.com/virtual/latest/docs/api/virtualizer
- Look for the
#required
and#optional
headers - ???
- Profit
Expected behavior
Headers are on separate lines, even if immediately preceded by another header.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Chromium on MacOS
tanstack-virtual version
v3.13.2
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct
- I agree to follow this project's Code of Conduct
- I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Metadata
Metadata
Assignees
Labels
No labels