diff --git a/docs/_utils/anchor-headings.js b/docs/_utils/anchor-headings.js index 78208bffe..a842611f7 100644 --- a/docs/_utils/anchor-headings.js +++ b/docs/_utils/anchor-headings.js @@ -53,7 +53,7 @@ export function anchorHeadingsPlugin(options = {}) { if (!id) { const slug = createId(clone.textContent ?? '') ?? uuid().slice(-12); id = slug; - let suffix = 0; + let suffix = 1; // Make sure the slug is unique in the document while (doc.getElementById(id) !== null) {