I'm trying to create a simple macro to render a text item in red in asciidoctor
.
The following does not work:
:redtext: [red]#some important text in red that occurs a lot#
{redtext}
or for an even simpler example:
:redcross: [red]#✘#
I am not clear on the rules for what can and cannot be substituted by a macro. The asciidoctor
manual has a blank space for macros at present (http://asciidoctor.org/docs/user-manual/#macros). The asciidoc
manual (http://www.methods.co.nz/asciidoc/chunked/ch21.html) isn't that clear either but may not apply to asciidoctor
anyway.
A related unanswered question is Resuable markup fragments with Asciidoctor. A related question to that suggests using includes which is overkill for this.
What are the limitations of macros?