···92929393### Custom badges
94949595-You can add custom npmx badges to your markdown files using the following syntax: `[](https://npmx.dev/YOUR_PACKAGE)`
9595+You can add custom npmx badges to your markdown files using the following syntax: `[](https://npmx.dev/package/YOUR_PACKAGE)`
96969797Do not forget to replace `YOUR_PACKAGE` with the actual package name.
9898···100100101101```
102102# Default
103103-[](https://npmx.dev/nuxt)
103103+[](https://npmx.dev/package/nuxt)
104104105105# Organization packages
106106-[](https://npmx.dev/@nuxt/kit)
106106+[](https://npmx.dev/package/@nuxt/kit)
107107108108# Version-specific badges
109109-[](https://npmx.dev/nuxt/v/3.12.0)
109109+[](https://npmx.dev/package/nuxt/v/3.12.0)
110110```
···187187 const dep = dependencies?.[packageName]
188188 if (dep) {
189189 // Link to code browser with resolved version
190190- return `/code/${packageName}/v/${dep.version}`
190190+ return `/package-code/${packageName}/v/${dep.version}`
191191 }
192192 // Fall back to package page if not a known dependency
193193- return `/${packageName}`
193193+ return `/package/${packageName}`
194194 }
195195196196 // Match: from keyword span followed by string span containing module specifier