From 439bc3af2dce21c02e5cde94bda713e106eab186 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Thu, 8 Dec 2016 08:36:07 -0800 Subject: [PATCH] T104662: Allow nested ref tags only in templates * To support the #tag parser function. * An aside, #tag is nutty, {{#tag:nowiki|testhaha}} Change-Id: I0ab93f6ae959b30a887e967952c904ef0400b189 --- lib/ext/Cite/index.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/ext/Cite/index.js b/lib/ext/Cite/index.js index f523d80fe..c3453da5f 100644 --- a/lib/ext/Cite/index.js +++ b/lib/ext/Cite/index.js @@ -49,13 +49,6 @@ function hasRef(node) { * Handle ref tokens */ Ref.prototype.tokenHandler = function(manager, pipelineOpts, refTok, cb) { - // Nested tags at the top level are considered errors - // But, inside templates, they are supported - if (!pipelineOpts.inTemplate && pipelineOpts.extTag === "ref") { - cb({ tokens: [refTok.getAttribute("source")] }); - return; - } - var refOpts = Object.assign({ name: null, group: null,