Skip to content

Commit 762cdf0

Browse files
koddssonmuan
andauthored
check to see if level is less than one
Co-Authored-By: Mu-An 慕安 <[email protected]>
1 parent 6c77550 commit 762cdf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MarkdownHeaderButtonElement extends MarkdownButtonElement {
4545
super()
4646

4747
const level = parseInt(this.getAttribute('level') || 3, 10)
48-
if (level > 6) {
48+
if (level < 1 || level > 6) {
4949
return
5050
}
5151

0 commit comments

Comments
 (0)