@vuepress/markdown 2.0.0-beta.32 → 2.0.0-beta.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ const assetsPlugin = (md, { relativePathPrefix = '@source' } = {}) => {
21
21
  // wrap raw html renderer rule
22
22
  const createHtmlRule = (rawHtmlRule) => (tokens, idx, options, env, self) => {
23
23
  // replace the original link with resolved link
24
- tokens[idx].content = tokens[idx].content.replace(/^( *<img\b.*src=")([^"]*)(")/s, (_, prefix, link, suffix) => `${prefix}${(0, resolveLink_1.resolveLink)(link, relativePathPrefix, env)}${suffix}`);
24
+ tokens[idx].content = tokens[idx].content.replace(/(<img\b.*?src=")([^"]*)(")/gs, (_, prefix, link, suffix) => `${prefix}${(0, resolveLink_1.resolveLink)(link, relativePathPrefix, env)}${suffix}`);
25
25
  return rawHtmlRule(tokens, idx, options, env, self);
26
26
  };
27
27
  const rawHtmlBlockRule = md.renderer.rules.html_block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/markdown",
3
- "version": "2.0.0-beta.32",
3
+ "version": "2.0.0-beta.33",
4
4
  "description": "Markdown package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@types/markdown-it": "^12.2.3",
30
- "@vuepress/shared": "2.0.0-beta.32",
31
- "@vuepress/utils": "2.0.0-beta.32",
32
- "markdown-it": "^12.2.0",
30
+ "@vuepress/shared": "2.0.0-beta.33",
31
+ "@vuepress/utils": "2.0.0-beta.33",
32
+ "markdown-it": "^12.3.2",
33
33
  "markdown-it-anchor": "^8.4.1",
34
34
  "markdown-it-emoji": "^2.0.0",
35
35
  "mdurl": "^1.0.1"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "8ffa71313607fe78f3956e3ccb886fcae0ddf5e9"
40
+ "gitHead": "0934a5d6685922e0dc6391622b00a3b89140492c"
41
41
  }