Highlighting (<mark>) within a list block

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Highlighting (<mark>) within a list block

apj68
I am trying to use <mark>within a list block.</mark>

But it seems this is not allowed, from the manual:

The content in listing blocks is only subject to special character and callout substitutions.

Is there some other way I can achieve <pre> type formatting but still have this highlighting?  We have an internal process that right now uses a Word document and comments from outside the document reference highlighting within then document (e.g., "Do something with the stuff you see highlighted in the document").  The content that is highlighted is often best depicted as a code block.

Es possible?


Andy
Reply | Threaded
Open this post in threaded view
|

Re: Highlighting (<mark>) within a list block

Robert.Panzer
Hi Andy,

I am unsure if I got your question correctly.
Do you want to know if you can have text formatting inside a source block?

If so you can define the substitutions that asciidoctor should apply on a block.
You can activate subsitutions for text formatting like this:

[subs=quotes]
----
_Italics_ and *bold* text within a source block
----

You can also find the description in the user manual:

http://asciidoctor.org/docs/user-manual/#applying-substitutions

Best regards,
Robert
Reply | Threaded
Open this post in threaded view
|

Re: Highlighting (<mark>) within a list block

apj68
That's it!  In my case I wanted to have a listing block but I wanted to enable the "<mark>text</mark>" option so I used:

[sub=macros]
----
my listing
----

Thank you so much for taking the time to answer, exactly what I needed!

- Andy