Parse and render macro attributes, rather than using the raw text

print-window-tiddler
Jeremy Ruston 2013-10-27 22:52:34 +00:00
rodzic d1108c7fcc
commit c7d56361ee
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -217,7 +217,8 @@ Widget.prototype.computeAttributes = function() {
if(attribute.type === "indirect") {
value = self.wiki.getTextReference(attribute.textReference,"",self.getVariable("tiddlerTitle"));
} else if(attribute.type === "macro") {
value = self.getVariable(attribute.value.name,{params: attribute.value.params});
var text = self.getVariable(attribute.value.name,{params: attribute.value.params});
value = self.wiki.new_renderText("text/plain","text/vnd.tiddlywiki",text);
} else { // String attribute
value = attribute.value;
}