marked-katex-extension 3.0.1 → 3.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 +7 -7
- package/src/index.js +1 -1
package/lib/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var katex = require('katex');
|
|
4
4
|
|
|
5
5
|
const inlineStartRule = /(?<=\s|^)\${1,2}(?!\$)/;
|
|
6
|
-
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(
|
|
6
|
+
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(?=[\s?!\.,:]|$)/;
|
|
7
7
|
const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
|
|
8
8
|
|
|
9
9
|
function index(options = {}) {
|
package/lib/index.umd.js
CHANGED
|
@@ -18410,7 +18410,7 @@
|
|
|
18410
18410
|
};
|
|
18411
18411
|
|
|
18412
18412
|
const inlineStartRule = /(?<=\s|^)\${1,2}(?!\$)/;
|
|
18413
|
-
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(
|
|
18413
|
+
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(?=[\s?!\.,:]|$)/;
|
|
18414
18414
|
const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
|
|
18415
18415
|
|
|
18416
18416
|
function index(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marked-katex-extension",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "MarkedJS extesion to render katex",
|
|
5
5
|
"main": "./lib/index.cjs",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://github.com/UziTech/marked-katex-extension#readme",
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"marked": "^4 || ^5 || ^6"
|
|
44
|
+
"marked": "^4 || ^5 || ^6 || ^7"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@babel/core": "^7.22.
|
|
48
|
-
"@babel/preset-env": "^7.22.
|
|
47
|
+
"@babel/core": "^7.22.10",
|
|
48
|
+
"@babel/preset-env": "^7.22.10",
|
|
49
49
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
50
50
|
"@semantic-release/changelog": "^6.0.3",
|
|
51
51
|
"@semantic-release/commit-analyzer": "^10.0.1",
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
"@semantic-release/release-notes-generator": "^11.0.4",
|
|
56
56
|
"babel-jest": "^29.6.2",
|
|
57
57
|
"cheerio": "^1.0.0-rc.12",
|
|
58
|
-
"eslint": "^8.
|
|
58
|
+
"eslint": "^8.46.0",
|
|
59
59
|
"eslint-config-standard": "^17.1.0",
|
|
60
60
|
"eslint-plugin-import": "^2.28.0",
|
|
61
61
|
"eslint-plugin-n": "^16.0.1",
|
|
62
62
|
"eslint-plugin-promise": "^6.1.1",
|
|
63
63
|
"jest-cli": "^29.6.2",
|
|
64
|
-
"marked": "^
|
|
64
|
+
"marked": "^7.0.0",
|
|
65
65
|
"node-fetch": "^3.3.2",
|
|
66
|
-
"rollup": "^3.27.
|
|
66
|
+
"rollup": "^3.27.2",
|
|
67
67
|
"semantic-release": "^21.0.7",
|
|
68
68
|
"tsd": "^0.28.1"
|
|
69
69
|
},
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import katex from 'katex';
|
|
2
2
|
|
|
3
3
|
const inlineStartRule = /(?<=\s|^)\${1,2}(?!\$)/;
|
|
4
|
-
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(
|
|
4
|
+
const inlineRule = /^(\${1,2})(?!\$)((?:\\.|[^\\\n])+?)(?<!\$)\1(?=[\s?!\.,:]|$)/;
|
|
5
5
|
const blockRule = /^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;
|
|
6
6
|
|
|
7
7
|
export default function(options = {}) {
|