If I create a file with {{{input-file}}}
as contents and export to HTML, the default macro is correctly evaluated to the filename. However, if I write [[file:{{{input-file}}}.alternative][Alternative version]]
the macro is not evaluated. However, if I place the macro on the other part of the link: [[file:manual.html.alternative][{{{input-file}}}.alternative]]
then it works!
If I use it in a #+BEGIN_HTML #+END_HTML
session instead of in a link the macro isn't evaluated either.
How can I fix this?