How do you embed marks and custom syslings to each other?

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

How do you embed marks and custom syslings to each other?

benibilme
Hello,

I have text that needs to be small compared to other text and I would like to underline part of it. Below structure is failing. How can I achive this without going to sytlye sheet which I do not control or writing pure html.

test.adoc

This is normal sized text. [.small]#This is small text. [.underline]#However this part must be small and underlined## 

Thanks in advance...
Reply | Threaded
Open this post in threaded view
|

Re: How do you embed marks and custom syslings to each other?

Alexander Schwartz
You can nest the outer formatting inside the inner formatting by using double-hash on the outside and single-hash on the inside.

The following worked for me. I put it into separate lines for improved readability, but it still works when you put everything in one line.

This is normal sized text.
[.small]##This is small text.
[.underline]#However this part must be small and underlined#
##
This utilizes the constrained/unconstrained formatting as described in the user manual: https://asciidoctor.org/docs/user-manual/#constrained-quotes

Regards, Alexander

Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de
Reply | Threaded
Open this post in threaded view
|

Re: How do you embed marks and custom syslings to each other?

benibilme
Thank you for the solution, you are correct!
Maybe the documentation could be improved for the novices  like me.
Reply | Threaded
Open this post in threaded view
|

Re: How do you embed marks and custom syslings to each other?

benibilme
In reply to this post by Alexander Schwartz
However this does not work. In addition to underlining I want make it bold and italic. Could you propose a solution for that?  
test.adoc