diff --git a/components/TOC.tsx b/components/TOC.tsx index f51acadc0fef..e5db11d05e7a 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -39,7 +39,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe // a-namedefinitionsapplicationaapplication slugWithATag contains transformed heading name that is later used // for scroll spy identification slugWithATag: item.content - .replace(/[<>?!:`'."\\/=]/gi, '') + .replace(/[<>?!:`'."\\/=*,]/gi, '') .replace(/\s/gi, '-') .toLowerCase() })); @@ -75,7 +75,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe