Skip to content

Commit e861be6

Browse files
authored
Update remark-transform-links.js
1 parent 48efc22 commit e861be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

showcases/patternhub/scripts/remark-transform-links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function transformLinks() {
55
visit(tree, 'link', (node) => {
66
if (node.url.endsWith('.md') && !node.url.startsWith('https://')) {
77
// Remove the .md extension from the URL and transform it from camelCase to kebab-case
8-
// e.g. `customIcons.md` -> `custom-icons`
8+
// e.g. `CustomIcons.md` -> `custom-icons`
99
// This is necessary to match the URL of the page generated by Next.js
1010
node.url = node.url
1111
.replace(/\.md$/, '')

0 commit comments

Comments
 (0)