diff --git a/core/modules/parsers/wikiparser/rules/block/codeblock.js b/core/modules/parsers/wikiparser/rules/block/codeblock.js index e6141d091..4910ce349 100644 --- a/core/modules/parsers/wikiparser/rules/block/codeblock.js +++ b/core/modules/parsers/wikiparser/rules/block/codeblock.js @@ -28,7 +28,7 @@ exports.init = function(parser) { this.matchRegExp = /\{\{\{\r?\n/mg; }; -exports.parse = function(match,isBlock) { +exports.parse = function() { var reEnd = /(\r?\n\}\}\}$)/mg; // Move past the match this.parser.pos = this.matchRegExp.lastIndex; diff --git a/core/modules/parsers/wikiparser/rules/block/rule.js b/core/modules/parsers/wikiparser/rules/block/rule.js index 49a2a07c6..a2a5a12b6 100644 --- a/core/modules/parsers/wikiparser/rules/block/rule.js +++ b/core/modules/parsers/wikiparser/rules/block/rule.js @@ -24,7 +24,7 @@ exports.init = function(parser) { this.matchRegExp = /-{3,}\r?\n/mg; }; -exports.parse = function(match,isBlock) { +exports.parse = function() { // Move past the match this.parser.pos = this.matchRegExp.lastIndex; return [{type: "element", tag: "hr"}]; diff --git a/core/modules/parsers/wikiparser/rules/inline/comment.js b/core/modules/parsers/wikiparser/rules/inline/comment.js index 0ff9227a9..b62de09c5 100644 --- a/core/modules/parsers/wikiparser/rules/inline/comment.js +++ b/core/modules/parsers/wikiparser/rules/inline/comment.js @@ -24,7 +24,7 @@ exports.init = function(parser) { this.matchRegExp = /\/mg; }; -exports.parse = function(match,isBlock) { +exports.parse = function() { // Move past the match this.parser.pos = this.matchRegExp.lastIndex; // Don't return any elements