Skip to content

Crossref syntax not well supported with non-space-sperated situation  #1507

@mingsu

Description

@mingsu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions