@vuepress/markdown
Advanced tools
Comparing version 2.0.0-beta.53 to 2.0.0-beta.54
@@ -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": { |
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
24346
+ Added@vuepress/shared@2.0.0-beta.54(transitive)
+ Added@vuepress/utils@2.0.0-beta.54(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedpicocolors@1.1.1(transitive)
- Removed@vuepress/shared@2.0.0-beta.53(transitive)
- Removed@vuepress/utils@2.0.0-beta.53(transitive)
- Removedfs-extra@10.1.0(transitive)