knitr::opts_chunk$set(collapse = TRUE, comment = "#>")

This vignette tests has a very long TOC. You should be able to navigate to a heading near the bottom of the doc without having to scroll all the way down.

h2 <- paste0("## Heading ", t(outer(letters, 1:9, paste0)))
knitr::asis_output(paste(h2, collapse = "\n\n"))


r-lib/pkgdown documentation built on May 1, 2024, 9:15 a.m.