mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Fixed embarrassing bug with the heading wikitext rule
This commit is contained in:
parent
f182463010
commit
87749397c0
@ -39,7 +39,7 @@ exports.regExpString = "!{1,6}";
|
|||||||
exports.parse = function(match,isBlock) {
|
exports.parse = function(match,isBlock) {
|
||||||
this.pos = match.index + match[0].length;
|
this.pos = match.index + match[0].length;
|
||||||
var classedRun = this.parseClassedRun(/(\r?\n)/mg);
|
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)];
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user