Skip to content

docs: Subsequent headers are put on the same line #950

Open
@matthewCmatt

Description

@matthewCmatt

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

Image

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

  1. Go to https://tanstack.com/virtual/latest/docs/api/virtualizer
  2. Look for the #required and #optional headers
  3. ???
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions