mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-10 12:46:39 +00:00
Parse and render macro attributes, rather than using the raw text
This commit is contained in:
parent
d1108c7fcc
commit
c7d56361ee
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user