@vuepress/markdown 2.0.0-beta.38 → 2.0.0-beta.41

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.
@@ -29,7 +29,7 @@ const getLanguagesMap = () => {
29
29
  const resolveLanguage = (info) => {
30
30
  var _a, _b;
31
31
  // get user-defined language alias
32
- const alias = ((_a = info.match(/^([a-zA-Z]+)/)) === null || _a === void 0 ? void 0 : _a[1]) || 'text';
32
+ const alias = ((_a = info.match(/^([^ :[{]+)/)) === null || _a === void 0 ? void 0 : _a[1]) || 'text';
33
33
  // if the alias does not have a match in the map
34
34
  // fallback to the alias itself
35
35
  return ((_b = getLanguagesMap()[alias]) !== null && _b !== void 0 ? _b : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/markdown",
3
- "version": "2.0.0-beta.38",
3
+ "version": "2.0.0-beta.41",
4
4
  "description": "Markdown package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -15,21 +15,17 @@
15
15
  "url": "git+https://github.com/vuepress/vuepress-next.git"
16
16
  },
17
17
  "license": "MIT",
18
- "author": "Evan You",
18
+ "author": "meteorlxy",
19
19
  "main": "lib/index.js",
20
20
  "types": "lib/index.d.ts",
21
21
  "files": [
22
22
  "lib"
23
23
  ],
24
- "scripts": {
25
- "build": "tsc -b tsconfig.build.json",
26
- "clean": "rimraf lib *.tsbuildinfo"
27
- },
28
24
  "dependencies": {
29
25
  "@types/markdown-it": "^12.2.3",
30
- "@vuepress/shared": "2.0.0-beta.38",
31
- "@vuepress/utils": "2.0.0-beta.38",
32
- "markdown-it": "^12.3.2",
26
+ "@vuepress/shared": "2.0.0-beta.41",
27
+ "@vuepress/utils": "2.0.0-beta.41",
28
+ "markdown-it": "^13.0.0",
33
29
  "markdown-it-anchor": "^8.4.1",
34
30
  "markdown-it-emoji": "^2.0.0",
35
31
  "mdurl": "^1.0.1"
@@ -37,5 +33,8 @@
37
33
  "publishConfig": {
38
34
  "access": "public"
39
35
  },
40
- "gitHead": "7cb24eab18628a66371a367090f7c9c33b519136"
41
- }
36
+ "scripts": {
37
+ "build": "tsc -b tsconfig.build.json",
38
+ "clean": "rimraf lib *.tsbuildinfo"
39
+ }
40
+ }