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:
parent
adf4a3bae1
commit
054977c912
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user