Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vuepress/markdown

Package Overview
Dependencies
Maintainers
2
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vuepress/markdown - npm Package Compare versions

Comparing version 2.0.0-rc.17 to 2.0.0-rc.18

18

dist/index.d.ts

@@ -48,8 +48,2 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';

/**
* Tag for internal links
*
* @default 'RouteLink'
*/
internalTag?: 'a' | 'RouteLink' | 'RouterLink';
/**
* Additional attributes for external links

@@ -66,2 +60,14 @@ *

externalAttrs?: Record<string, string>;
/**
* Tag for internal links
*
* @default 'RouteLink'
*/
internalTag?: 'a' | 'RouteLink' | 'RouterLink';
/**
* Method to check if a link is external
*
* @default import { isLinkExternal } from '@vuepress/shared'
*/
isExternal?: (href: string, env: MarkdownEnv) => boolean;
}

@@ -68,0 +74,0 @@ /**

@@ -235,2 +235,3 @@ // src/markdown.ts

const internalTag = options.internalTag || "RouteLink";
const isExternal = options.isExternal ?? ((href, env) => isLinkExternal(href, env.base));
const externalAttrs = {

@@ -251,3 +252,3 @@ target: "_blank",

const { base = "/", filePathRelative = null } = env;
if (isLinkExternal(hrefLink, base)) {
if (isExternal(hrefLink, env)) {
Object.entries(externalAttrs).forEach(([key, val]) => {

@@ -254,0 +255,0 @@ token.attrSet(key, val);

{
"name": "@vuepress/markdown",
"version": "2.0.0-rc.17",
"version": "2.0.0-rc.18",
"description": "Markdown package of VuePress",

@@ -44,4 +44,4 @@ "keywords": [

"mdurl": "^2.0.0",
"@vuepress/shared": "2.0.0-rc.17",
"@vuepress/utils": "2.0.0-rc.17"
"@vuepress/shared": "2.0.0-rc.18",
"@vuepress/utils": "2.0.0-rc.18"
},

@@ -48,0 +48,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc