@vuepress/markdown
Advanced tools
Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
@@ -90,5 +90,5 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc'; | ||
* | ||
* @default 'RouterLink' | ||
* @default 'VPLink' | ||
*/ | ||
internalTag?: 'a' | 'RouterLink'; | ||
internalTag?: 'a' | 'VPLink' | 'RouterLink'; | ||
/** | ||
@@ -110,3 +110,3 @@ * Additional attributes for external links | ||
* | ||
* - internal links: convert them into `<RouterLink>` | ||
* - internal links: convert them into `<VPLink>` | ||
* - external links: add extra attrs and external icon | ||
@@ -113,0 +113,0 @@ */ |
@@ -440,3 +440,3 @@ var __defProp = Object.defineProperty; | ||
var linksPlugin = (md, options = {}) => { | ||
const internalTag = options.internalTag || "RouterLink"; | ||
const internalTag = options.internalTag || "VPLink"; | ||
const externalAttrs = { | ||
@@ -477,3 +477,3 @@ target: "_blank", | ||
const normalizedPath = absolutePath.replace(new RegExp(`^${base}`), "/").replace(/(^|\/)(README|index).md$/i, "$1").replace(/\.md$/, ".html"); | ||
if (internalTag === "RouterLink") { | ||
if (["RouterLink", "VPLink"].includes(internalTag)) { | ||
token.tag = internalTag; | ||
@@ -480,0 +480,0 @@ hrefAttr[0] = "to"; |
{ | ||
"name": "@vuepress/markdown", | ||
"version": "2.0.0-rc.2", | ||
"version": "2.0.0-rc.3", | ||
"description": "Markdown package of VuePress", | ||
@@ -44,4 +44,4 @@ "keywords": [ | ||
"mdurl": "^2.0.0", | ||
"@vuepress/shared": "2.0.0-rc.2", | ||
"@vuepress/utils": "2.0.0-rc.2" | ||
"@vuepress/shared": "2.0.0-rc.3", | ||
"@vuepress/utils": "2.0.0-rc.3" | ||
}, | ||
@@ -48,0 +48,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26226
+ Added@vuepress/shared@2.0.0-rc.3(transitive)
+ Added@vuepress/utils@2.0.0-rc.3(transitive)
- Removed@vuepress/shared@2.0.0-rc.2(transitive)
- Removed@vuepress/utils@2.0.0-rc.2(transitive)
Updated@vuepress/shared@2.0.0-rc.3
Updated@vuepress/utils@2.0.0-rc.3