1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-07 22:33:50 +00:00

Add markup to capture macro details

This commit is contained in:
Jeremy Ruston 2012-01-14 15:48:17 +00:00
parent adf4a3bae1
commit 054977c912

View File

@ -132,7 +132,16 @@ WikiTextParseTree.prototype.compileMacroCall = function(type,name,params) {
value: n value: n
}); });
} }
if(type === "text/html") {
this.pushString(utils.stitchElement("div",{
"data-tw-macro": name,
"data-tw-params": JSON.stringify(params)
}));
}
this.output.push(macroCall); this.output.push(macroCall);
if(type === "text/html") {
this.pushString("</div>");
}
}; };
WikiTextParseTree.prototype.compileElementHtml = function(element, options) { WikiTextParseTree.prototype.compileElementHtml = function(element, options) {