Login  Register

Inline roles inside blocks

Posted by mbc on Feb 19, 2019; 4:49pm
URL: https://discuss.asciidoctor.org/Inline-roles-inside-blocks-tp6758.html

Hi all!
I need your help!

I need to format a word (color text), but this text exists inside a listing block. For example:

[source]
----
> run mycommand

this is my [red]output
----

What I want to get is the word "output" colored in red.

I don't know how to "escape" the role in this case (included in the listing block).

How can I do that?

Thanks in advance!