diff --git a/core/modules/parsers/wikiparser/rules/heading.js b/core/modules/parsers/wikiparser/rules/heading.js index 1423fcae2..de4e45c27 100644 --- a/core/modules/parsers/wikiparser/rules/heading.js +++ b/core/modules/parsers/wikiparser/rules/heading.js @@ -36,7 +36,7 @@ exports.parse = function() { // Return the heading return [{ type: "element", - tag: "h" + this.match[1].length, + tag: "h" + headingLevel, attributes: { "class": {type: "string", value: classes.join(" ")} },