We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48efc22 commit e861be6Copy full SHA for e861be6
showcases/patternhub/scripts/remark-transform-links.js
@@ -5,7 +5,7 @@ export default function transformLinks() {
5
visit(tree, 'link', (node) => {
6
if (node.url.endsWith('.md') && !node.url.startsWith('https://')) {
7
// Remove the .md extension from the URL and transform it from camelCase to kebab-case
8
- // e.g. `customIcons.md` -> `custom-icons`
+ // e.g. `CustomIcons.md` -> `custom-icons`
9
// This is necessary to match the URL of the page generated by Next.js
10
node.url = node.url
11
.replace(/\.md$/, '')
0 commit comments