1
0
mirror of synced 2025-12-21 02:46:50 -05:00
Files
docs/components/lib/getAnchorLink.ts
Mike Surowiec 06d8f81401 Two-pane Experiment (#21092)
* pull changes from docs-playground

* cleanup, add callout banner

* cleanup linting and test fixes

* add discussion link

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-08-26 14:19:40 -04:00

2 lines
88 B
TypeScript

export const getAnchorLink = (title: string) => title.toLowerCase().replace(/\s/g, '-')