mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Add markup to capture macro details
This commit is contained in:
parent
adf4a3bae1
commit
054977c912
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user