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

@vuepress/markdown

Package Overview
Dependencies
Maintainers
6
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-beta.45 to 2.0.0-beta.46

11

lib/plugins/assetsPlugin/assetsPlugin.js

@@ -24,3 +24,12 @@ "use strict";

// replace the original link with resolved link
tokens[idx].content = tokens[idx].content.replace(/(<img\b.*?src=")([^"]*)(")/gs, (_, prefix, link, suffix) => `${prefix}${(0, resolveLink_1.resolveLink)(link, relativePathPrefix, env)}${suffix}`);
tokens[idx].content = tokens[idx].content
// handle src
.replace(/(<img\b.*?src=")([^"]*)(")/gs, (_, prefix, src, suffix) => `${prefix}${(0, resolveLink_1.resolveLink)(src.trim(), relativePathPrefix, env)}${suffix}`)
// handle srcset
.replace(/(<img\b.*?srcset=")([^"]*)(")/gs, (_, prefix, srcset, suffix) => `${prefix}${srcset
.split(',')
.map((item) => item
.trim()
.replace(/^([^ ]*?)([ \n].*)?$/, (_, url, descriptor = '') => `${(0, resolveLink_1.resolveLink)(url.trim(), relativePathPrefix, env)}${descriptor.replace(/[ \n]+/g, ' ').trimEnd()}`))
.join(', ')}${suffix}`);
return rawHtmlRule(tokens, idx, options, env, self);

@@ -27,0 +36,0 @@ };

8

package.json
{
"name": "@vuepress/markdown",
"version": "2.0.0-beta.45",
"version": "2.0.0-beta.46",
"description": "Markdown package of VuePress",

@@ -26,6 +26,6 @@ "keywords": [

"@types/markdown-it": "^12.2.3",
"@vuepress/shared": "2.0.0-beta.45",
"@vuepress/utils": "2.0.0-beta.45",
"@vuepress/shared": "2.0.0-beta.46",
"@vuepress/utils": "2.0.0-beta.46",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.3",
"markdown-it-anchor": "^8.6.4",
"markdown-it-emoji": "^2.0.2",

@@ -32,0 +32,0 @@ "mdurl": "^1.0.1"

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