mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-04 17:43:00 +00:00
Rejigged the link macro to accept child elements
This commit is contained in:
@@ -355,10 +355,10 @@ WikiStore.prototype.renderTiddler = function(targetType,title,asTitle) {
|
||||
/*
|
||||
Executes a macro and returns the result
|
||||
*/
|
||||
WikiStore.prototype.renderMacro = function(macroName,targetType,tiddler,params) {
|
||||
WikiStore.prototype.renderMacro = function(macroName,targetType,tiddler,params,content) {
|
||||
var macro = this.macros[macroName];
|
||||
if(macro) {
|
||||
return macro.handler(targetType,tiddler,this,params);
|
||||
return macro.handler(targetType,tiddler,this,params,content);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user