From d182be6dcba7f9d57813581fb0271fe6a3b1b8a4 Mon Sep 17 00:00:00 2001 From: Charlotte Wickham Date: Mon, 28 Sep 2026 15:02:26 -0700 Subject: [PATCH] Fix heading levels on the download pages Highlights and Release Notes become h2, the index tabsets split on h1, and populateNews() shifts changelog headings down one level instead of flattening them all to h6. --- docs/download/_download-pre.md | 2 +- docs/download/_download.html | 2 +- docs/download/_download.md | 2 +- docs/download/index.qmd | 12 ++++++------ docs/prerelease/_highlights-prerelease.qmd | 2 +- docs/prerelease/_highlights-release.qmd | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/download/_download-pre.md b/docs/download/_download-pre.md index 07f501be08..6452620514 100644 --- a/docs/download/_download-pre.md +++ b/docs/download/_download-pre.md @@ -15,7 +15,7 @@ :::: {#download-pre-section-news} -### Release Notes {#download-pre-release-notes} +## Release Notes {#download-pre-release-notes} ::: {#download-pre-news .download-news} ::: diff --git a/docs/download/_download.html b/docs/download/_download.html index f007da377d..8a0453fbcc 100644 --- a/docs/download/_download.html +++ b/docs/download/_download.html @@ -124,7 +124,7 @@ function populateNews(idPrefix, markdown) { if (markdown) { - markdown = markdown.replace(/^#{1,6} (.*)$/gm, "###### $1"); + markdown = markdown.replace(/^(#{1,5}) /gm, "#$1 "); var reader = new commonmark.Parser(); var writer = new commonmark.HtmlRenderer(); var parsed = reader.parse(markdown); diff --git a/docs/download/_download.md b/docs/download/_download.md index a02ecce45f..1d9b3fbb88 100644 --- a/docs/download/_download.md +++ b/docs/download/_download.md @@ -14,7 +14,7 @@ ::: {#download-section-news} -### Release Notes {#download-release-notes} +## Release Notes {#download-release-notes} ::: {#download-news .download-news} ::: diff --git a/docs/download/index.qmd b/docs/download/index.qmd index e7b7233a84..6b2314ed90 100644 --- a/docs/download/index.qmd +++ b/docs/download/index.qmd @@ -44,16 +44,16 @@ listing: ::: {.panel-tabset} -## **{{< meta prerelease-title >}}** --- v[]{.download-pre-version} +# **{{< meta prerelease-title >}}** --- v[]{.download-pre-version} {{< include _download-pre.md >}} -## **Current Release** --- v[]{.download-version} +# **Current Release** --- v[]{.download-version} {{< include _download.md >}} -## **Older Releases** +# **Older Releases** Pages containing all installers for the most recent releases of older versions of Quarto are linked below. @@ -69,15 +69,15 @@ Pages containing all installers for the most recent releases of older versions o ::: {.panel-tabset} -## **Current Release** --- v[]{.download-version} +# **Current Release** --- v[]{.download-version} {{< include _download.md >}} -## **{{< meta prerelease-title >}}** --- v[]{.download-pre-version} +# **{{< meta prerelease-title >}}** --- v[]{.download-pre-version} {{< include _download-pre.md >}} -## **Older Releases** +# **Older Releases** Pages containing all installers for the most recent releases of older versions of Quarto are linked below. diff --git a/docs/prerelease/_highlights-prerelease.qmd b/docs/prerelease/_highlights-prerelease.qmd index 4b36e0db34..b2a5236c40 100644 --- a/docs/prerelease/_highlights-prerelease.qmd +++ b/docs/prerelease/_highlights-prerelease.qmd @@ -1,3 +1,3 @@ -### Highlights {#download-section-highlights} +## Highlights {#download-section-highlights} {{< include /docs/prerelease/1.11/_highlights.qmd >}} \ No newline at end of file diff --git a/docs/prerelease/_highlights-release.qmd b/docs/prerelease/_highlights-release.qmd index b33a58cc47..1f0dd2aa3b 100644 --- a/docs/prerelease/_highlights-release.qmd +++ b/docs/prerelease/_highlights-release.qmd @@ -1,3 +1,3 @@ -### Highlights {#download-section-highlights} +## Highlights {#download-section-highlights} {{< include /docs/prerelease/1.10/_highlights.qmd >}} \ No newline at end of file