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.53 to 2.0.0-beta.54

10

dist/index.d.ts

@@ -19,3 +19,3 @@ import { SfcPluginOptions } from '@mdit-vue/plugin-sfc';

declare type AnchorPluginOptions = anchorPlugin.AnchorOptions;
type AnchorPluginOptions = anchorPlugin.AnchorOptions;

@@ -73,3 +73,3 @@ interface AssetsPluginOptions {

declare type EmojiPluginOptions = emojiPlugin.Options;
type EmojiPluginOptions = emojiPlugin.Options;

@@ -112,3 +112,3 @@ interface ImportCodePluginOptions {

declare type Markdown = MarkdownIt;
type Markdown = MarkdownIt;

@@ -133,3 +133,3 @@ interface MarkdownOptions extends MarkdownIt.Options {

*/
declare type MarkdownHeader = PageHeader;
type MarkdownHeader = PageHeader;
/**

@@ -181,3 +181,3 @@ * Internal links in markdown file

*/
declare type MarkdownSlugifyFunction = (str: string) => string;
type MarkdownSlugifyFunction = (str: string) => string;

@@ -184,0 +184,0 @@ /**

@@ -55,11 +55,11 @@ var __defProp = Object.defineProperty;

tokens[idx].content = tokens[idx].content.replace(
/(<img\b.*?src=")([^"]*)(")/gs,
(_, prefix, src, suffix) => `${prefix}${resolveLink(
/(<img\b.*?src=)(['"])([^\2]*?)\2/gs,
(_, prefix, quote, src) => `${prefix}${quote}${resolveLink(
src.trim(),
relativePathPrefix,
env
)}${suffix}`
)}${quote}`
).replace(
/(<img\b.*?srcset=")([^"]*)(")/gs,
(_, prefix, srcset, suffix) => `${prefix}${srcset.split(",").map(
/(<img\b.*?srcset=)(['"])([^\2]*?)\2/gs,
(_, prefix, quote, srcset) => `${prefix}${quote}${srcset.split(",").map(
(item) => item.trim().replace(

@@ -73,3 +73,3 @@ /^([^ ]*?)([ \n].*)?$/,

)
).join(", ")}${suffix}`
).join(", ")}${quote}`
);

@@ -76,0 +76,0 @@ return rawHtmlRule(tokens, idx, options, env, self);

{
"name": "@vuepress/markdown",
"version": "2.0.0-beta.53",
"version": "2.0.0-beta.54",
"description": "Markdown package of VuePress",

@@ -40,8 +40,8 @@ "keywords": [

"@types/markdown-it-emoji": "^2.0.2",
"@vuepress/shared": "2.0.0-beta.53",
"@vuepress/utils": "2.0.0-beta.53",
"markdown-it": "^13.0.1",
"markdown-it-anchor": "^8.6.5",
"markdown-it-emoji": "^2.0.2",
"mdurl": "^1.0.1"
"mdurl": "^1.0.1",
"@vuepress/shared": "2.0.0-beta.54",
"@vuepress/utils": "2.0.0-beta.54"
},

@@ -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