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 ce8a023 commit 6689ef6Copy full SHA for 6689ef6
web_src/js/markup/anchors.js
@@ -28,7 +28,7 @@ function scrollToAnchor(encodedId, initial) {
28
29
export function initMarkupAnchors() {
30
const markupEls = document.querySelectorAll('.markup');
31
- if (!markupEls) return;
+ if (!markupEls.length) return;
32
33
for (const markupEl of markupEls) {
34
// create link icons for markup headings, the resulting link href will remove `user-content-`
0 commit comments