diff --git a/core/modules/parsers/wikitextparser/rules/wikitextrules.js b/core/modules/parsers/wikitextparser/rules/wikitextrules.js index 6dde0f9cc..dd8d994c5 100755 --- a/core/modules/parsers/wikitextparser/rules/wikitextrules.js +++ b/core/modules/parsers/wikitextparser/rules/wikitextrules.js @@ -412,13 +412,13 @@ var rules = [ oldNextMatch = w.nextMatch, oldChildren = w.children, oldDependencies = w.dependencies, - parseTree = w.wiki.parseText(mimeType,content,{defaultType: "text/plain"}); + parseTree = w.wiki.parseText(mimeType,content,{defaultType: "text/plain"}).tree; w.output = oldOutput; w.source = oldSource; w.nextMatch = oldNextMatch; w.children = oldChildren; w.dependencies = oldDependencies; - w.output.push.apply(w.output,parseTree.nodes); + w.output.push.apply(w.output,parseTree); w.nextMatch = this.lookaheadRegExp.lastIndex; } }