I have no idea if this is expected…
The :map
filter run prefix sets the <currentTiddler>
variable inside a :map
filter run, but for a function call inside the same :map
-prefixed filter run, the <currentTiddler>
is whatever it was outside the :map
prefix.
Test code:
\function outer(v) [<v>] :map[function[inner]addsuffix[ / Current tiddler inside map: ]addsuffix<currentTiddler>]
\function inner() [[Current tiddler inside inner function: ]addsuffix<currentTiddler>]
<<outer "Input Value">>
Output:
Current tiddler inside inner function: Draft of 'New Tiddler' / Current tiddler inside map: Input Value
Is this expected behavior, or is it a bug?