From 87749397c066d000edb8ff2dd2a5aceed715e435 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 15 Jul 2012 18:12:45 +0100 Subject: [PATCH] Fixed embarrassing bug with the heading wikitext rule --- core/modules/parsers/newwikitextparser/rules/heading.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)]; }; })();