The following code, when placed in a script passage, changes <<display>>
so that you can use variables and operators in it, such as <<display $passage>>
.
version.extensions.displayMacro={major:2,minor:1,revision:0};macros.display={handler:function(place,macroName,params,parser){try{var output=eval(parser.fullArgs()); if(output){new Wikifier(place,tale.get(output.toString()).text);}}catch(e){throwError(place,"bad expression: "+e.message); }}};
A quick and untidy alternative to using this code is to just use <<print tale.get($passage).text>>
in place of <<display $passage>>