mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-03 07:42:37 -08: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:
parent
06500e5f71
commit
cdf3e101a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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(" ")}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue