From d97bf9a9e95f08f3d280628e43e03b75416000b4 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 3 Dec 2024 12:06:31 -0500 Subject: [PATCH] Update docs/_utils/anchor-headings.js Co-authored-by: Lea Verou --- docs/_utils/anchor-headings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {