mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Figure references point to figure captions

Open antonrmolina opened this issue 1 month ago • 1 comments
trafficstars

Description

When using the following syntax to define a figure:

:::{figure} https://github.com/rowanc1/pics/blob/main/sunset.png?raw=true
:label: fig:my-fig-0
my caption is really long and being referenced completely...

:::

and then subsequently reference this figure in the text using {ref}fig:my-fig-0``. The entire caption is being referenced as opposed to the expected behavior of Figure 1:

Image

Additional notes

This was tested on both MyST 1.6.0 and 1.6.3.

antonrmolina avatar Oct 23 '25 20:10 antonrmolina