@docusaurus/core 0.0.0-5814 → 0.0.0-5816

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.
@@ -99,8 +99,11 @@ function Link({ isNavLink, to, href, activeClassName, isActive, 'data-noBrokenLi
99
99
  }, [ioRef, targetLink, IOSupported, isInternal]);
100
100
  // It is simple local anchor link targeting current page?
101
101
  const isAnchorLink = targetLink?.startsWith('#') ?? false;
102
+ // See also RR logic:
103
+ // https://github.com/remix-run/react-router/blob/v5/packages/react-router-dom/modules/Link.js#L47
104
+ const hasInternalTarget = !props.target || props.target === '_self';
102
105
  // Should we use a regular <a> tag instead of React-Router Link component?
103
- const isRegularHtmlLink = !targetLink || !isInternal || isAnchorLink;
106
+ const isRegularHtmlLink = !targetLink || !isInternal || !hasInternalTarget || isAnchorLink;
104
107
  if (!noBrokenLinkCheck && (isAnchorLink || !isRegularHtmlLink)) {
105
108
  brokenLinks.collectLink(targetLink);
106
109
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-5814",
4
+ "version": "0.0.0-5816",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.22.6",
44
44
  "@babel/runtime-corejs3": "^7.22.6",
45
45
  "@babel/traverse": "^7.22.8",
46
- "@docusaurus/cssnano-preset": "0.0.0-5814",
47
- "@docusaurus/logger": "0.0.0-5814",
48
- "@docusaurus/mdx-loader": "0.0.0-5814",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5816",
47
+ "@docusaurus/logger": "0.0.0-5816",
48
+ "@docusaurus/mdx-loader": "0.0.0-5816",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5814",
51
- "@docusaurus/utils-common": "0.0.0-5814",
52
- "@docusaurus/utils-validation": "0.0.0-5814",
50
+ "@docusaurus/utils": "0.0.0-5816",
51
+ "@docusaurus/utils-common": "0.0.0-5816",
52
+ "@docusaurus/utils-validation": "0.0.0-5816",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.7",
54
54
  "@svgr/webpack": "^6.5.1",
55
55
  "autoprefixer": "^10.4.14",
@@ -104,8 +104,8 @@
104
104
  "webpackbar": "^5.0.2"
105
105
  },
106
106
  "devDependencies": {
107
- "@docusaurus/module-type-aliases": "0.0.0-5814",
108
- "@docusaurus/types": "0.0.0-5814",
107
+ "@docusaurus/module-type-aliases": "0.0.0-5816",
108
+ "@docusaurus/types": "0.0.0-5816",
109
109
  "@types/detect-port": "^1.3.3",
110
110
  "@types/react-dom": "^18.2.7",
111
111
  "@types/react-router-config": "^5.0.7",
@@ -124,5 +124,5 @@
124
124
  "engines": {
125
125
  "node": ">=18.0"
126
126
  },
127
- "gitHead": "67b273740f8d1404edf4307185f21ab3b4b37032"
127
+ "gitHead": "e9b8e0c6029d8f90c8f915bde11045cd130fb24d"
128
128
  }