Asciidoc not processing xref when used in caption of a figure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Asciidoc not processing xref when used in caption of a figure

siddjain
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?
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc not processing xref when used in caption of a figure

David Jencks
I think the table here explains it:


I think if you put the xref in an attribute it will get substituted, and it’s possible you can adjust which substitutions are applied to the caption, although I don’t immediately see how.  That’s explained near the end of the section.

David Jencks

On Feb 24, 2020, at 4:56 PM, siddjain [via Asciidoctor :: Discussion] <[hidden email]> wrote:

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?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoc-not-processing-xref-when-used-in-caption-of-a-figure-tp7673.html
To start a new topic under Asciidoctor :: Discussion, [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Asciidoc not processing xref when used in caption of a figure

siddjain
I tried mucking around with it but it doesn't solve the problem. When a xref is put in caption of a figure, asciidoc is not processing that xref