marked-katex-extension 4.0.2 → 4.0.4

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.
package/lib/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var katex = require('katex');
4
4
 
5
- const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:]|$)/;
5
+ const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/;
6
6
  const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
7
7
 
8
8
  function index(options = {}) {
package/lib/index.umd.js CHANGED
@@ -18419,7 +18419,7 @@
18419
18419
  }
18420
18420
  };
18421
18421
 
18422
- const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:]|$)/;
18422
+ const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/;
18423
18423
  const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
18424
18424
 
18425
18425
  function index(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marked-katex-extension",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "MarkedJS extesion to render katex",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./src/index.js",
@@ -43,35 +43,35 @@
43
43
  },
44
44
  "homepage": "https://github.com/UziTech/marked-katex-extension#readme",
45
45
  "peerDependencies": {
46
- "marked": ">=4 <10"
46
+ "marked": ">=4 <11"
47
47
  },
48
48
  "devDependencies": {
49
- "@babel/core": "^7.23.0",
50
- "@babel/preset-env": "^7.22.20",
51
- "@markedjs/testutils": "9.1.0-3",
52
- "@rollup/plugin-node-resolve": "^15.2.1",
49
+ "@babel/core": "^7.23.3",
50
+ "@babel/preset-env": "^7.23.3",
51
+ "@markedjs/testutils": "9.1.5-0",
52
+ "@rollup/plugin-node-resolve": "^15.2.3",
53
53
  "@semantic-release/changelog": "^6.0.3",
54
- "@semantic-release/commit-analyzer": "^11.0.0",
54
+ "@semantic-release/commit-analyzer": "^11.1.0",
55
55
  "@semantic-release/git": "^10.0.1",
56
- "@semantic-release/github": "^9.2.1",
57
- "@semantic-release/npm": "^11.0.0",
58
- "@semantic-release/release-notes-generator": "^12.0.0",
56
+ "@semantic-release/github": "^9.2.3",
57
+ "@semantic-release/npm": "^11.0.1",
58
+ "@semantic-release/release-notes-generator": "^12.1.0",
59
59
  "babel-jest": "^29.7.0",
60
60
  "cheerio": "^1.0.0-rc.12",
61
- "eslint": "^8.50.0",
61
+ "eslint": "^8.53.0",
62
62
  "eslint-config-standard": "^17.1.0",
63
- "eslint-plugin-import": "^2.28.1",
64
- "eslint-plugin-n": "^16.1.0",
63
+ "eslint-plugin-import": "^2.29.0",
64
+ "eslint-plugin-n": "^16.3.1",
65
65
  "eslint-plugin-promise": "^6.1.1",
66
66
  "jest-cli": "^29.7.0",
67
- "marked": "^9.0.3",
67
+ "marked": "^10.0.0",
68
68
  "node-fetch": "^3.3.2",
69
- "rollup": "^3.29.4",
70
- "semantic-release": "^22.0.5",
69
+ "rollup": "^4.3.0",
70
+ "semantic-release": "^22.0.7",
71
71
  "tsd": "^0.29.0"
72
72
  },
73
73
  "dependencies": {
74
- "@types/katex": "^0.16.3",
74
+ "@types/katex": "^0.16.5",
75
75
  "katex": "^0.16.9"
76
76
  }
77
77
  }
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import katex from 'katex';
2
2
 
3
- const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:]|$)/;
3
+ const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/;
4
4
  const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
5
5
 
6
6
  export default function(options = {}) {