> On May 8, 2026, at 01:50, Christian Moe <[email protected]> wrote:
> 
> No, try this:
> 
>  {{{include-if(blah, {{{bold(Tom\\\, Dick\\\, and Harry)}}})}}}

FYI: I’m exporting to HTML as my test (since that might make a difference).

The problem is if the include doesn’t happen.  e.g.

{{{include-if(blahh, {{{bold(Tom\\\, Dick\\\, and Harry)}}})}}}

(note the extra h in blahh) results in ")}}}” being in the export.  Kinda weird 
that it works in the true case but not the false case.

But (repeating myself) both true and false cases work if the macro in the 
argument has no arguments.

As far as the triple back slashes, as you said, it is very confusing to read.  
Splitting it into two pieces, to me, is more readable and safer.

#+MACRO: bold-tom-dick-harry {{{bold(Tom\, Dick\, and Harry)}}}
true: {{{include-if(blah, {{{bold-tom-dick-harry}}})}}}

false: {{{include-if(blahh, {{{bold-tom-dick-harry}}})}}}




Reply via email to