1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-14 14:27:16 +00:00

Extend Macro Call Widget to support outputting raw text

This commit is contained in:
jeremy@jermolene.com
2020-09-28 11:30:28 +01:00
parent 543f9107b6
commit ae13a0fee1
2 changed files with 24 additions and 7 deletions

View File

@@ -73,6 +73,8 @@ MacroCallWidget.prototype.execute = function() {
attributes: attributes,
children: parseTreeNodes
}];
} else if(this.renderOutput === "text/raw") {
parseTreeNodes = [{type: "text", text: text}];
} else {
// Otherwise, we'll render the text
var plainText = this.wiki.renderText("text/plain",this.parseType,text,{parentWidget: this});