quarto-dev / quarto-dev/quarto-cli

Crossref syntax not well supported with `non-space-sperated` situation

Aperta
#1,507 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

crossref enhancement
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Descrizione

Crossref syntax such as See @fig-demofiglabel is not well supported with no-space situation for docx output format.

WARNING: Unable to resolve crossref @fig-demofiglabel所示

For example:

如@fig-demofiglabel所示

I tried the syntax below, with no success

如@{fig-demofiglabel}所示

MWE

---
title: MWE
format: docx
---


See @fig-demofiglabel

如@{fig-demofiglabel}所示

If I add a space before`@`, it works.

如 @{fig-demofiglabel}所示

```{r}
#| label: fig-demofiglabel
#| fig-cap: "Demo figure"
plot(1)
```

Screenshot 2022-07-23 at 22 08 56

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Reproduce the minimal example with Quarto's docx output and the adjacent Chinese characters around @fig-demofiglabel. Compare the working spaced reference with the no-space cases, then trace the cross-reference parsing and resolution path. Done means the cross-reference resolves without requiring a preceding space, while existing spaced syntax continues to work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.