Asciidoc not processing xref when used in caption of a figure

Posted by siddjain on
URL: https://discuss.asciidoctor.org/Asciidoc-not-processing-xref-when-used-in-caption-of-a-figure-tp7673.html

Hello, If I make a xref in the caption of a figure, the xref is not processed by asciidoc. Example:

.My caption. See <<iam>> for details
image::components.png[]


later in the doc

[id=iam]
== A Section

Expected:

<<iam>> should be processed by asciidoc and reference to the section inserted

Observed:

xref is not processed

is this a known issue or is there something i am not doing correctly?