mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-05 12:28:02 +00:00
Parse and render macro attributes, rather than using the raw text
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user