mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-20 16:42:02 +00:00
Fix crash with headings
`this.match[1].length` can get overwritten when we parse the content of the heading
This commit is contained in:
@@ -36,7 +36,7 @@ exports.parse = function() {
|
|||||||
// Return the heading
|
// Return the heading
|
||||||
return [{
|
return [{
|
||||||
type: "element",
|
type: "element",
|
||||||
tag: "h" + this.match[1].length,
|
tag: "h" + headingLevel,
|
||||||
attributes: {
|
attributes: {
|
||||||
"class": {type: "string", value: classes.join(" ")}
|
"class": {type: "string", value: classes.join(" ")}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user