We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a000d2b commit b6d2bceCopy full SHA for b6d2bce
1 file changed
index.js
@@ -45,6 +45,10 @@ class MarkdownHeaderButtonElement extends MarkdownButtonElement {
45
super()
46
47
const level = parseInt(this.getAttribute('level') || 3, 10)
48
+ if (level > 6) {
49
+ return
50
+ }
51
+
52
const prefix = `${'#'.repeat(level)} `
53
styles.set(this, {
54
prefix
0 commit comments