marked-katex-extension 4.0.2 → 4.0.3
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 +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +10 -10
- package/src/index.js +1 -1
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.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "MarkedJS extesion to render katex",
|
|
5
5
|
"main": "./lib/index.cjs",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"marked": ">=4 <10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.23.
|
|
50
|
-
"@babel/preset-env": "^7.
|
|
49
|
+
"@babel/core": "^7.23.2",
|
|
50
|
+
"@babel/preset-env": "^7.23.2",
|
|
51
51
|
"@markedjs/testutils": "9.1.0-3",
|
|
52
|
-
"@rollup/plugin-node-resolve": "^15.2.
|
|
52
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
53
53
|
"@semantic-release/changelog": "^6.0.3",
|
|
54
54
|
"@semantic-release/commit-analyzer": "^11.0.0",
|
|
55
55
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"@semantic-release/release-notes-generator": "^12.0.0",
|
|
59
59
|
"babel-jest": "^29.7.0",
|
|
60
60
|
"cheerio": "^1.0.0-rc.12",
|
|
61
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.52.0",
|
|
62
62
|
"eslint-config-standard": "^17.1.0",
|
|
63
|
-
"eslint-plugin-import": "^2.
|
|
64
|
-
"eslint-plugin-n": "^16.
|
|
63
|
+
"eslint-plugin-import": "^2.29.0",
|
|
64
|
+
"eslint-plugin-n": "^16.2.0",
|
|
65
65
|
"eslint-plugin-promise": "^6.1.1",
|
|
66
66
|
"jest-cli": "^29.7.0",
|
|
67
|
-
"marked": "^9.
|
|
67
|
+
"marked": "^9.1.2",
|
|
68
68
|
"node-fetch": "^3.3.2",
|
|
69
|
-
"rollup": "^
|
|
69
|
+
"rollup": "^4.1.4",
|
|
70
70
|
"semantic-release": "^22.0.5",
|
|
71
71
|
"tsd": "^0.29.0"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@types/katex": "^0.16.
|
|
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 = {}) {
|