quarto-dev / quarto-cli

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

Use dash (-) with group cross references #1707

Open rgaiacs opened 2 years ago

rgaiacs commented 2 years ago

Bug description

Consider the following minimal working example:

_quarto.yml:

project:
  type: book

book:
  title: "Minimal Working Example"
  author: "Raniere"
  date: "06/08/2022"
  chapters:
    - index.qmd

format:
  html:
    theme: cosmo

index.qmd:

# Preface {.unnumbered}

Some text [@fig-first; @fig-second] more text.

![Some text](cover.png){#fig-first}

![Some text](cover.png){#fig-second}

After render, I got

Some text Figure 1, Figure 2 more text.

when I expected to get

Some text Figure 1--2 more text.

Screenshot from 2022-08-06 08-13-38

quarto check Output

[✓] Checking Quarto installation......OK Version: 1.0.37 Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK Version: 3.9.2 Path: /usr/bin/python3 Jupyter: (None)

  Jupyter is not available in this Python installation.
  Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK Version: 4.1.3 Path: /opt/conda/lib/R LibPaths:

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

quarto tools check Output

Tool         Status            Installed     Latest  
chromium     Not installed     ---           869685  
tinytex      Not installed     ---           v2022.08

Checklist

jjallaire commented 2 years ago

We are going to be working on many improvements to crossrefs in v1.2 (later this fall) and expect to resolve this issue in that release.