fumadocs-core 13.4.8 → 13.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/source/index.js +2 -2
- package/package.json +1 -1
package/dist/source/index.js
CHANGED
|
@@ -108,12 +108,12 @@ function resolveFolderItem(folder, item, ctx, addedNodePaths) {
|
|
|
108
108
|
}
|
|
109
109
|
const linkResult = link.exec(item);
|
|
110
110
|
if (linkResult?.groups) {
|
|
111
|
-
const { icon, url,
|
|
111
|
+
const { icon, url, name } = linkResult.groups;
|
|
112
112
|
const isRelative = url.startsWith("/") || url.startsWith("#") || url.startsWith(".");
|
|
113
113
|
const node = {
|
|
114
114
|
type: "page",
|
|
115
115
|
icon: ctx.options.resolveIcon?.(icon),
|
|
116
|
-
name
|
|
116
|
+
name,
|
|
117
117
|
url,
|
|
118
118
|
external: !isRelative
|
|
119
119
|
};
|