Open cwickham opened 5 months ago
I recently fixed this issue for floats of type Listing: https://github.com/quarto-dev/quarto-cli/issues/9724
I don't know how easy it'll be to fix this for Figure floats without breaking other parts of our styling. Fundamentally, the problem is that the DOM we emit for code listings doesn't play nicely with the DOM we emit for centering things like captions. We definitely want to fix this, but I'm reluctant to do it late in 1.5.
Bug description
When the
filename
attribute is used for a code cell inside a figure cross-reference it gets centered, rather than being left-aligned.Steps to reproduce
::: {#fig-1}
Some R code
:::