Are attributes allowed with tag:: comments?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Are attributes allowed with tag:: comments?

Is it legal and supported to say something like

// tag::tagname[myattrib='foo bar']

? The user manual just uses [] in all the examples I can see, but it would be very convenient for our purposes to be able to define block attribute-like variables to associate with the tagged block (even though/if such variables would not be visible to asciidoctor itself, though it's a bonus if they *are* visible).

Alternatively, what are the restrictions on what other content can be present on a tag:: line? It would be basically as good for our needs to be able to say

// tag::tagname[] // myattrib='foo bar'

or similar.