We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bf458b commit 343cb67Copy full SHA for 343cb67
assets/js/shortcuts.js
@@ -98,15 +98,13 @@ function setupShortcuts(shortcutDepth = 2) {
98
99
shortcutDepth += 1; // to account for the page title
100
101
- // Build a class selector for each header type, and concatenate with commas
102
- // Note the intentional lack of a space between .content-container and
103
- // :not([role='tabpanel']) here.
+ // Build a class selector for each header level
104
let classes = "";
105
for (let i = 2; i <= shortcutDepth; i++) {
106
if (i != 2) {
107
classes += ",";
108
}
109
- classes += " .content-container:not([role='tabpanel']) > h" + i;
+ classes += `.content-container > h${i}`;
110
111
112
const classElements = Array.from(document.querySelectorAll(classes));
0 commit comments