@vuepress/markdown 2.0.0-rc.21 → 2.0.0-rc.23

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -261,7 +261,10 @@ var linksPlugin = (md, options = {}) => {
261
261
  return;
262
262
  }
263
263
  const rawPath = internalLinkMatch[1];
264
- const rawHashAndQueries = internalLinkMatch[2] || "";
264
+ const rawHashAndQueries = (internalLinkMatch[2] || "").replace(
265
+ /^#(\d)/,
266
+ "#_$1"
267
+ );
265
268
  const { relativePath, absolutePath } = resolvePaths(
266
269
  rawPath,
267
270
  base,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/markdown",
3
- "version": "2.0.0-rc.21",
3
+ "version": "2.0.0-rc.23",
4
4
  "description": "Markdown package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -41,8 +41,8 @@
41
41
  "markdown-it-anchor": "^9.2.0",
42
42
  "markdown-it-emoji": "^3.0.0",
43
43
  "mdurl": "^2.0.0",
44
- "@vuepress/shared": "2.0.0-rc.21",
45
- "@vuepress/utils": "2.0.0-rc.21"
44
+ "@vuepress/shared": "2.0.0-rc.23",
45
+ "@vuepress/utils": "2.0.0-rc.23"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/mdurl": "^2.0.0"