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

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

> There is an alternative syntax for IDs that works for me on Asciidoctor 2.0.10. Instead of double-braces I used single braces and a hash:

Exactly correct! The legacy double bracket syntax for IDs doesn't support attribute references for compatibility reasons. (See https://github.com/asciidoctor/asciidoctor/issues/1381).

Best,

-Dan

On Wed, Nov 13, 2019 at 6:35 AM Alexander Schwartz [via Asciidoctor :: Discussion] <[hidden email]> wrote:
There is an alternative syntax for IDs that works for me on Asciidoctor 2.0.10. Instead of double-braces I used single braces and a hash:

[#{id_variable}]
.Image title
image::image1.png[]

After that change the examples seemed to work for me.
Alexander Schwartz ([hidden email])
https://www.ahus1.de



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-can-i-include-text-snippet-with-image-more-then-once-tp7350p7352.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux