Bug description
Hello,
Per this issue, I am reporting a bug when trying to crossreference a figure:
Using quarto, I am unable to crossref using regular citation syntax, with short-captions.lua pandoc filter. Figures without the short caption filter can be crossreferenced but not with that filter. I am forced to use the latex alternative which is less practical for another reason.
I am not sure if the problem comes from quarto or this filter.
![**Bold caption** [@Armas.2004]](figure.jpeg){#fig-cap short-caption="**short-cap**"}
@fig-cap returns ?@fig-cap
Anything that is not @fig- breaks as quarto expects a bibliography citation instead.
@fig:test returns (fig:test).
\ref{fig-cap} works.
Here is a minimal reproductible example.
Instead, I have to use \ref{fig-cap} to reference my figure. The issue is that going to visual mode would remove the bold modifications I make, which is why I would have liked to use the quarto syntax.
For example, (**Figure \ref{fig-cap}**) is returned as (**Figure** \ref{fig-cap}) in visual mode which is not what I want.
I am using the latest version of quarto (1.2.335) and RStudio (4.2.2) on Windows 11, 22H2 lastest version.
Checklist
Bug description
Hello,
Per this issue, I am reporting a bug when trying to crossreference a figure:
Using quarto, I am unable to crossref using regular citation syntax, with short-captions.lua pandoc filter. Figures without the short caption filter can be crossreferenced but not with that filter. I am forced to use the latex alternative which is less practical for another reason.
I am not sure if the problem comes from quarto or this filter.
![**Bold caption** [@Armas.2004]](figure.jpeg){#fig-cap short-caption="**short-cap**"}@fig-capreturns ?@fig-capAnything that is not
@fig-breaks as quarto expects a bibliography citation instead.@fig:testreturns (fig:test).\ref{fig-cap}works.Here is a minimal reproductible example.
Instead, I have to use \ref{fig-cap} to reference my figure. The issue is that going to visual mode would remove the bold modifications I make, which is why I would have liked to use the quarto syntax.
For example,
(**Figure \ref{fig-cap}**)is returned as(**Figure** \ref{fig-cap})in visual mode which is not what I want.I am using the latest version of quarto (1.2.335) and RStudio (4.2.2) on Windows 11, 22H2 lastest version.
Checklist