quarto-dev / quarto-dev/quarto-cli

YAML argument `toc-title` ignored when `toc-location: left` and TOC is rolled up

Open
#8,565 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

When the TOC is rolled up on the left sidebar, the TOC title fails to render my custom TOC title. When rolled down, there's no problem.

Using quarto-1.5.6-linux-amd64.deb

My _quarto.yml includes:

format:
  html:
    toc: true
    toc-title: Contents
    toc-location: left

image

image

Steps to reproduce

No response

Expected behavior

TOC title should show Contents

Actual behavior

Currently shows default article title

Your environment

RStudio Server
2023.12.0 Build 290
© 2009-2023 Posit Software, PBC
"Ocean Storm" Daily (898215ec, 2023-11-14) for Ubuntu Jammy
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Quarto check output
Quarto 1.5.6
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report using the shown _quarto.yml configuration with toc-location: left and toc-title: Contents, comparing rolled-up and rolled-down TOCs. Trace the HTML TOC rendering path and existing tests, if present; done means the custom title renders as Contents when the left TOC is rolled up without regressing the other layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, yaml
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.