Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

docs: Subsequent headers are put on the same line

Đang mở
#950 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
css
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với trang tài liệu Virtualizer được liên kết và markdown nguồn của trang đó để so sánh markup tiêu đề được tạo ra, đặc biệt là các tiêu đề #required và #optional. Kiểm tra CSS được áp dụng cho các thẻ anchor của tiêu đề và xác định lý do các tiêu đề liền kề được hiển thị inline; hoàn thành khi các tiêu đề liên tiếp xuất hiện trên các dòng riêng biệt trong Chromium.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
7.1k
Fork
466
Merge trung bình
2 ngày 31 phút
Pull request đã merge (30 ngày)
13

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/virtual

Tất cả issue của TanStack/virtual

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.