diff --git a/core/modules/parsers/newwikitextparser/rules/heading.js b/core/modules/parsers/newwikitextparser/rules/heading.js index 73461a19e..9d9259a74 100644 --- a/core/modules/parsers/newwikitextparser/rules/heading.js +++ b/core/modules/parsers/newwikitextparser/rules/heading.js @@ -39,7 +39,7 @@ exports.regExpString = "!{1,6}"; exports.parse = function(match,isBlock) { this.pos = match.index + match[0].length; var classedRun = this.parseClassedRun(/(\r?\n)/mg); - return [$tw.Tree.Element("h1",{"class": classedRun["class"]},classedRun.tree)]; + return [$tw.Tree.Element("h" + match[0].length,{"class": classedRun["class"]},classedRun.tree)]; }; })();