1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 02:50:27 +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
});
}
if(type === "text/html") {
this.pushString(utils.stitchElement("div",{
"data-tw-macro": name,
"data-tw-params": JSON.stringify(params)
}));
}
this.output.push(macroCall);
if(type === "text/html") {
this.pushString("</div>");
}
};
WikiTextParseTree.prototype.compileElementHtml = function(element, options) {