\define href()
<$macrocall $name="datauri" title="image.png" $output="text/plain"/>
\end
\define Fancybox()
<a href=<<href>> >
macro test
</a>
\end
<<Fancybox>>
but this doesn’t seem to work, I got this
<a href="<$macrocall $name="datauri" title="image.png" $output="text/plain"/>">
macro test
</a>
You can use the wikify widget to render the macrocall and assign its output to a variable.
Or alternatively you can just use text concatenation with filters.
Quick example:
\define imagetobase64() [{!!text}] [[;base64,]] [{!!type}] [[data:]] :and[reverse[]join[]]
<$let currentTiddler="PerlinLight.jpg">
<a href={{{ [subfilter<imagetobase64>] }}}>test</a>
</$let>