Re: [small] not working with asciidoctr-pdf
Posted by
mojavelinux on
Feb 12, 2019; 9:06am
URL: https://discuss.asciidoctor.org/small-not-working-with-asciidoctr-pdf-tp6702p6721.html
Marc,
If you want to use an attribute, then you have to switch to the inline pass macro:
:red: #ff0000
Attempt to provide pass:a[<color rgb="{red}">some colour</color>] in a line of text.
(The triple plus passthrough does not allow any substitutions).
-Dan
On Tue, Feb 12, 2019 at 1:48 AM 1marc1 [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Oops, silly me: attribute substitution works via {}.
:my_red: #d3173c
Attempt to provide +++<color rgb={my_red}>some colour</color>+++ in a line of text.
Attempt to provide +++<color rgb="{my_red}">some colour</color>+++ in a line of text.
Unfortunately, neither of the above works.
Marc.
--