How do I define a macro in asciidoc/asciidoctor?
I will use a repeating pattern in many parts of my document so I would like to make a parametrized substitution to avoid entering the same stuff many times.
In particular, I have the following asciidoc snippet:
{set:cellbgcolor:grey}
[grid=none, frame=none]
|===
| X >| Y
|===
{set:cellbgcolor!}
And I need to place it in several parts of the document with different text substitutions in place of X and Y. How do I achieve that?