fumadocs-core 16.17.6 → 16.17.7

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.
@@ -119,8 +119,10 @@ function remarkImage({ placeholder = "none", external = true, useImport = true,
119
119
  };
120
120
  }
121
121
  function getImportPath(file, dir) {
122
- const relative = path$1.relative(dir, file).replaceAll(path$1.sep, "/");
123
- return relative.startsWith("../") ? relative : `./${relative}`;
122
+ const relative = path$1.relative(dir, file);
123
+ const posix = relative.replaceAll(path$1.sep, "/");
124
+ if (path$1.isAbsolute(relative) || posix.startsWith("../")) return posix;
125
+ return `./${posix}`;
124
126
  }
125
127
  /**
126
128
  * @param src - src href
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.17.6",
3
+ "version": "16.17.7",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",