mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fixed cascading for with: parameters to tiddler macro
This commit is contained in:
parent
1e015c72dd
commit
91c183480c
@ -94,7 +94,7 @@ wikiTextMacros.macros = {
|
||||
today: {
|
||||
handler: function(macroNode,store,title) {
|
||||
var now = new Date(),
|
||||
args = new ArgParser(macroNode.params,{noNames:true}),
|
||||
args = new ArgParser(macroNode.params,{noNames:true,cascadeDefaults:true}),
|
||||
value = args.byPos[0] ? utils.formatDateString(now,args.byPos[0].v) : now.toLocaleString();
|
||||
macroNode.output.push({type: "text", value: value});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user