@rspress/core 0.0.1 → 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.
@@ -6003,7 +6003,7 @@ var Hr = (props) => {
6003
6003
 
6004
6004
  // src/theme-default/layout/DocLayout/docComponents/link.tsx
6005
6005
  import { jsx as _jsx53 } from "react/jsx-runtime";
6006
- import { isExternalUrl, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6006
+ import { isExternalUrl, normalizeHref as normalizeHref8, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6007
6007
  import { withBase as withBase8, useLang, usePageData as usePageData13, removeBase as removeBase3 } from "@/runtime";
6008
6008
  function _define_property34(obj, key, value) {
6009
6009
  if (key in obj) {
@@ -6071,7 +6071,7 @@ var A = (props) => {
6071
6071
  if (lang === defaultLang && startWithLang) {
6072
6072
  href = removeBase3(href).replace(`/${lang}`, "");
6073
6073
  }
6074
- href = withBase8(href || "");
6074
+ href = normalizeHref8(withBase8(href || ""));
6075
6075
  }
6076
6076
  return /* @__PURE__ */ _jsx53("a", _object_spread_props30(_object_spread34({}, props), {
6077
6077
  className: `${index_module_default18.link} ${props.className}`,