Skip to content

Commit 46c5bd1

Browse files
committed
Improve documentation layout
1 parent fc0c8df commit 46c5bd1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
const isHeading = el => el && el.nodeType === 1 && /^H[1-6]$/.test(el.tagName);
66
const headers = root.querySelectorAll('h2, h3, h4, h5, h6');
7+
const ids = new Set();
78
headers.forEach(h => {
89
let id = h.id || h.textContent.trim().toLowerCase().replace(/\W+/g, '-');
910
let base = id;

0 commit comments

Comments
 (0)