I use asciidoc for rendering text.
I have difficulties to understand macros. My goal is to have a simple macro processing (like in LaTeX). I would like to write two Macros:
FOO
should be replaced by"bar"
MYTEXT(xyz)
should be replaced by:"This is my text xyz!"
(perhaps with a different way to pass the parameter 'xyz')
Example file abc.txt:
text text text
FOO text FOO
text text text
MYTEXT(jajaja)
This should result in
text text text
bar text bar
text text text
This is my text jajaja!
I would expect that the definition of FOO
and MYTEXT
has to go into the file abc.conf
; probabely into the secion [macro].
Additional question:
Are there problems with the pattern matching, if
FOO
should be replace with 'bar'
and FOOX
with 'barbar'
?