Skip to content

Commit

Permalink
fixes for broken TOC links
Browse files Browse the repository at this point in the history
  • Loading branch information
Shriya-Chauhan committed Jan 31, 2025
1 parent 6242f9c commit ded1ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/TOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}));
Expand Down

0 comments on commit ded1ec5

Please sign in to comment.