@vuepress/shared 2.0.0-beta.42 → 2.0.0-beta.45
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/index.cjs +1 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33,7 +33,6 @@ __export(src_exports, {
|
|
|
33
33
|
isLinkMailto: () => isLinkMailto,
|
|
34
34
|
isLinkTel: () => isLinkTel,
|
|
35
35
|
isPlainObject: () => isPlainObject,
|
|
36
|
-
isPromise: () => import_shared.isPromise,
|
|
37
36
|
isString: () => import_shared.isString,
|
|
38
37
|
removeEndingSlash: () => removeEndingSlash,
|
|
39
38
|
removeLeadingSlash: () => removeLeadingSlash,
|
|
@@ -132,7 +131,7 @@ var isLinkExternal = (link, base = "/") => {
|
|
|
132
131
|
if (isLinkHttp(link) || isLinkFtp(link)) {
|
|
133
132
|
return true;
|
|
134
133
|
}
|
|
135
|
-
if (link.startsWith("/") && !link.startsWith(base)) {
|
|
134
|
+
if (link.startsWith("/") && !link.startsWith(base) && !link.endsWith(".md")) {
|
|
136
135
|
return true;
|
|
137
136
|
}
|
|
138
137
|
return false;
|
|
@@ -188,7 +187,6 @@ var resolveRoutePathFromUrl = (url, base = "/") => url.replace(/^(https?:)?\/\/[
|
|
|
188
187
|
isLinkMailto,
|
|
189
188
|
isLinkTel,
|
|
190
189
|
isPlainObject,
|
|
191
|
-
isPromise,
|
|
192
190
|
isString,
|
|
193
191
|
removeEndingSlash,
|
|
194
192
|
removeLeadingSlash,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/utils/index.ts
|
|
2
|
-
import { isArray, isFunction,
|
|
2
|
+
import { isArray, isFunction, isString } from "@vue/shared";
|
|
3
3
|
|
|
4
4
|
// src/utils/resolveHeadIdentifier.ts
|
|
5
5
|
var resolveHeadIdentifier = ([
|
|
@@ -87,7 +87,7 @@ var isLinkExternal = (link, base = "/") => {
|
|
|
87
87
|
if (isLinkHttp(link) || isLinkFtp(link)) {
|
|
88
88
|
return true;
|
|
89
89
|
}
|
|
90
|
-
if (link.startsWith("/") && !link.startsWith(base)) {
|
|
90
|
+
if (link.startsWith("/") && !link.startsWith(base) && !link.endsWith(".md")) {
|
|
91
91
|
return true;
|
|
92
92
|
}
|
|
93
93
|
return false;
|
|
@@ -142,7 +142,6 @@ export {
|
|
|
142
142
|
isLinkMailto,
|
|
143
143
|
isLinkTel,
|
|
144
144
|
isPlainObject,
|
|
145
|
-
isPromise,
|
|
146
145
|
isString,
|
|
147
146
|
removeEndingSlash,
|
|
148
147
|
removeLeadingSlash,
|