quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.97k stars 327 forks source link

Site variables referenced in a page title are not resolved in a page's breadcrumbs #10557

Open nickvigilante opened 3 months ago

nickvigilante commented 3 months ago

Bug description

I just noticed that when we have a page referencing a site variable, the variable displays correctly in both the sidebar and in the page body itself. However, it doesn't render appropriately when in the page's breadcrumbs. See attached:

2024-08-19_15-27

Steps to reproduce

  1. git clone https://github.com/nickvigilante/title-variable-breadcrumb-issue
  2. quarto preview

Expected behavior

The breadcrumbs should print This should show bar: bar.

Actual behavior

The breadcrumbs say This should show bar: {{< var foo >}}.

Your environment

Quarto check output

Quarto 1.5.56
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.56
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Tex:  (not detected)

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.14 (Conda)
      Path: /Users/nickv/miniforge3/bin/python
      Jupyter: 5.7.2
      Kernels: ir, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.4.1
      Path: /opt/homebrew/Cellar/r/4.4.1/lib/R
      LibPaths:
        - /opt/homebrew/lib/R/4.4/site-library
        - /opt/homebrew/Cellar/r/4.4.1/lib/R/library
      knitr: 1.47
      rmarkdown: 2.27

[✓] Checking Knitr engine render......OK
nrichers commented 1 week ago

We just noticed this problem as well and discovered this GitHub issue while debugging.

Image