mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-12 20:31:18 -08:00
Fixed cascading for with: parameters to tiddler macro
This commit is contained in:
parent
1e015c72dd
commit
91c183480c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue