kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix crash with headings
`this.match[1].length` can get overwritten when we parse the content of the headingprint-window-tiddler
rodzic
06500e5f71
commit
cdf3e101a8
|
@ -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(" ")}
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue