Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

docs: Subsequent headers are put on the same line

Aperta
#950 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
css
Ambito
documentation

Direzione di ricerca

Inizia dalla pagina della documentazione di Virtualizer collegata e dal relativo markdown sorgente per confrontare il markup dei titoli generato, in particolare i titoli #required e #optional. Esamina il CSS applicato ai tag anchor dei titoli e identifica perché i titoli adiacenti vengono visualizzati inline; il lavoro è completato quando i titoli consecutivi appaiono su righe separate in Chromium.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
7.1k
Fork
466
Merge medio
2g 31m
PR unite (30g)
13

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TanStack/virtual

Tutte le issue di TanStack/virtual

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.