quarto-ext / lightbox

Create lightbox treatments for images in your HTML documents.
https://quarto-ext.github.io/lightbox/
MIT License
76 stars 4 forks source link

Figure cross-referencing - unable to resolve crossref @fig #19

Closed jav-ed closed 1 year ago

jav-ed commented 1 year ago

Thank you for this very nice extension. Unfortunately, if it is used it removes the figure id, see for example:

![Data and workflow of the first step: Data generation](../../3_Figs_Pyth/2_Task/1_Data_Gen.svg){#fig-fig_4_Data_Gen}

Here you see, the figure has the id "fig-fig_4_Data_Gen". When activating lightbox the figure id is removed and the following error occors:

WARNING: Data/1_Writing/2_Task/1_Data_Gen.html: Unable to resolve crossref @fig-fig_4_Data_Gen

Is it possible to have cross-referencing and lightbox working together?

dragonstyle commented 1 year ago

Thanks for reporting this - I am looking into it and am seeing the same issue when using Quarto 1.3 (The release candidate). Can you just confirm that you are using Quarto 1.3 (using quarto --version) just so I'm sure I'm seeing the same thing you are as I dig into the issue?

jav-ed commented 1 year ago

Yes, I updated it recently. Here see my output:

➜  ~ quarto --version
1.3.321

Thank you for the fast reply

dragonstyle commented 1 year ago

Perfect thank you!

cscheid commented 1 year ago

This is a quarto bug! Thanks for the report. We'll fix right away.

jav-ed commented 1 year ago

Thank you that solved the issue