mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
parent
18d7d3d8c0
commit
9f1eab175d
@ -45,7 +45,7 @@ TranscludeWidget.prototype.execute = function() {
|
|||||||
var target = this.getTransclusionTarget(),
|
var target = this.getTransclusionTarget(),
|
||||||
parseTreeNodes = target.parseTreeNodes;
|
parseTreeNodes = target.parseTreeNodes;
|
||||||
this.sourceText = target.text;
|
this.sourceText = target.text;
|
||||||
this.sourceType = target.type;
|
this.parserType = target.type;
|
||||||
this.parseAsInline = target.parseAsInline;
|
this.parseAsInline = target.parseAsInline;
|
||||||
// Process the transclusion according to the output type
|
// Process the transclusion according to the output type
|
||||||
switch(this.transcludeOutput || "text/html") {
|
switch(this.transcludeOutput || "text/html") {
|
||||||
@ -58,7 +58,7 @@ TranscludeWidget.prototype.execute = function() {
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// text/plain
|
// text/plain
|
||||||
var plainText = this.wiki.renderText("text/plain",this.sourceType,this.sourceText,{parentWidget: this});
|
var plainText = this.wiki.renderText("text/plain",this.parserType,this.sourceText,{parentWidget: this});
|
||||||
parseTreeNodes = [{type: "text", text: plainText}];
|
parseTreeNodes = [{type: "text", text: plainText}];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user