mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
Merge "T104662: Allow nested ref tags only in templates"
This commit is contained in:
commit
0b1277434f
|
@ -49,13 +49,6 @@ function hasRef(node) {
|
|||
* Handle ref tokens
|
||||
*/
|
||||
Ref.prototype.tokenHandler = function(manager, pipelineOpts, refTok, cb) {
|
||||
// Nested <ref> 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,
|
||||
|
|
Loading…
Reference in a new issue