mystmd
mystmd copied to clipboard
Figure references point to figure captions
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:
Additional notes
This was tested on both MyST 1.6.0 and 1.6.3.