Re: Asciidoctor-pdf admonition inside attribute
Posted by
mojavelinux on
Mar 15, 2019; 10:04am
URL: https://discuss.asciidoctor.org/Asciidoctor-pdf-admonition-inside-attribute-tp6680p6813.html
Attributes are not designed to hold block content. You can hold the paragraph content of the admonition block, but not the block itself.
You could develop an extension that draws content from a reserved (hidden) section of the document and inserts it at other places. Another solution is to use includes.
Cheers,
-Dan
On Thu, Jan 17, 2019 at 10:17 PM 1marc1 [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi Team,
I am using asciidoctor-pdf and I am trying to get an admonition inside a document attribute. Something like this:
:mynote: NOTE: This is a note.
Here is my text, followed by my note.
{mynote}
The output is simply "NOTE: This is a note.", without the actual admonition. I have been playing around with the pass macro. For example:
:mynote: pass:q[NOTE: This is a note.]
But this doesn't work either. Not sure if I need to change the order of the text substitutions.
Any help and suggestions are welcome.
Marc.
--