From ded1ec5d45bc54a920c3325ba71b329a3ab7e7d7 Mon Sep 17 00:00:00 2001 From: Shriya-Chauhan Date: Fri, 31 Jan 2025 15:17:01 +0530 Subject: [PATCH] fixes for broken TOC links --- components/TOC.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/TOC.tsx b/components/TOC.tsx index 8b655b07d784..246a826e525f 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() }));