I use asciidoc to render text.
I find it hard to understand macros
My goal is simple macro processing (e.g. in LaTeX)
FOO should be replaced by "bar"
MYTEXT (xyz) should be replaced by: "This is my zyz text!"
(maybe in another way pass the parameter "xyz")
Example abc.txt file:
text text text FOO text FOO text text text MYTEXT(jajaja)
This should lead to
text text text bar text bar text text text This is my text jajaja!
I would expect the definition of FOO and MYTEXT to go into the abc.conf file; Probably in the series [macro].
Additional question:
Are there problems with pattern matching if
Should FOO be replaced by "bar" and FOOX "barbar"?
source share