This is being addressed in the issue referenced above https://github.com/pandoc/lua-filters/issues/261

On Friday, January 27, 2023 at 3:52:14 PM UTC-8 Antonio Piccolboni wrote:
I opened issues in both pandoc-crossref and lua-filters 
https://github.com/pandoc/lua-filters/issues/261
https://github.com/lierdakil/pandoc-crossref/issues/371
I provided a MRE in there.

On Friday, January 27, 2023 at 3:15:54 PM UTC-8 Antonio Piccolboni wrote:
Good point, I use brew without thinking too much about it, but I checked and it's the latest 0.3.15.0. In the release page it does mention there have been changes in figure handling and to be on the look for bugs. Maybe I should report there.

On Friday, January 27, 2023 at 2:52:31 PM UTC-8 Bastien Dumont wrote:
Do you have the latest version of pandoc-crossref? It has been updated for pandoc 3 last week (see here: https://github.com/lierdakil/pandoc-crossref/releases/tag/v0.3.15.0).

Le Friday 27 January 2023 à 10:19:43AM, Antonio Piccolboni a écrit :
> Hi,
> just upgraded from 2.18 to 3.0.2 and running it on an existing project I have
> some broken crossref. They are all graphviz graphs generated with
> diagram-generator.lua. This is a snippet
>
>
>  ... to the subgraphs in @fig:cyclomatic.
>
> ```{.graphviz #fig:cyclomatic caption="Graphs corresponding to `if` and `while`
> statements resp."}
> ...
> ```
> I read the release notes but I can't find anything that relates to this. Any
> suggestions? Thanks
>
>
> Antonio
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/5ce59ce6-b0df-4cc0-99e0-26f221b0db72n%40googlegroups.com.
>
> References:
>
> [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-discuss/5ce59ce6-b0df-4cc0-99e0-26f221b0db72n%40googlegroups.com?utm_medium=email&utm_source=footer

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1534fc3d-7bf6-42ce-a9a2-a11c828bb2c3n%40googlegroups.com.