Re: How can i include text snippet with image more then once?

Posted by Hoplop on
URL: https://discuss.asciidoctor.org/How-can-i-include-text-snippet-with-image-more-then-once-SOLVED-tp7350p7351.html

I tried to solve this by using variables in image ID and changing its value each time before include:

in snippet.adoc:

Some text
(<<{id_variable}>>)
+
[[{id_variable}]]
.Image title
image::image1.png[]

in main.adoc:

Some text some text some text

:id_variable: _first-include
include::snippet.adoc[]

Another text another text another text

:id_variable: _second-include
include::snippet.adoc[]

BUT it does not work. Probably, asciidoctor doesn't allow using of variables in id's...
Any help?