@rspress/core 0.0.0-next-20230824072138 → 0.0.2

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/loader.js CHANGED
@@ -3736,7 +3736,7 @@ var rehypePluginCodeMeta = () => {
3736
3736
  import path3 from "path";
3737
3737
  import { visit as visit2 } from "unist-util-visit";
3738
3738
  import fs from "@modern-js/utils/fs-extra";
3739
- import { addLeadingSlash, normalizeHref, parseUrl, isExternalUrl } from "@rspress/shared";
3739
+ import { addLeadingSlash, normalizeHref, parseUrl, isExternalUrl, slash as slash2 } from "@rspress/shared";
3740
3740
 
3741
3741
  // src/node/utils/getASTNodeImport.ts
3742
3742
  var getASTNodeImport = (name, from) => ({
@@ -3809,7 +3809,7 @@ var remarkPluginNormalizeLink = ({ base, defaultLang, root }) => (tree, file) =>
3809
3809
  }
3810
3810
  const relativePath = path3.relative(root, file.path);
3811
3811
  if (url.startsWith(".")) {
3812
- url = path3.join(path3.dirname(relativePath), url);
3812
+ url = path3.posix.join(slash2(path3.dirname(relativePath)), url);
3813
3813
  }
3814
3814
  const lang = extractLangFromFilePath(relativePath);
3815
3815
  url = normalizeLangPrefix(normalizeHref(url), lang, defaultLang);