How can i include text snippet with image more then once? [SOLVED]

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

So i have separate file with content like this:

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

In my main document i have to include those snippet few times like this:

include::snippet.adoc[]

The problem is that when i try to build PDF, i get errors

asciidoctor: WARNING: main.adoc: line 24: id assigned to block already in use: id1

What can i do in this situation?