diff --git a/src/utils/helpers/toc/getTocHeadings.ts b/src/utils/helpers/toc/getTocHeadings.ts index 23cd739b4..e3e6c3626 100644 --- a/src/utils/helpers/toc/getTocHeadings.ts +++ b/src/utils/helpers/toc/getTocHeadings.ts @@ -13,7 +13,7 @@ export const getTocHeadings = () => { const text = heading.textContent; let slug = text ?.toLocaleLowerCase() - .replace(/\W(?