marked-katex-extension 3.0.2 → 3.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
@@ -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(?=\s|$)/;
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(?=\s|$)/;
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.2",
3
+ "version": "3.0.4",
4
4
  "description": "MarkedJS extesion to render katex",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./src/index.js",
@@ -41,31 +41,31 @@
41
41
  },
42
42
  "homepage": "https://github.com/UziTech/marked-katex-extension#readme",
43
43
  "peerDependencies": {
44
- "marked": "^4 || ^5 || ^6 || ^7"
44
+ "marked": ">=4 <9"
45
45
  },
46
46
  "devDependencies": {
47
- "@babel/core": "^7.22.9",
48
- "@babel/preset-env": "^7.22.9",
49
- "@rollup/plugin-node-resolve": "^15.1.0",
47
+ "@babel/core": "^7.22.11",
48
+ "@babel/preset-env": "^7.22.10",
49
+ "@rollup/plugin-node-resolve": "^15.2.1",
50
50
  "@semantic-release/changelog": "^6.0.3",
51
- "@semantic-release/commit-analyzer": "^10.0.1",
51
+ "@semantic-release/commit-analyzer": "^10.0.4",
52
52
  "@semantic-release/git": "^10.0.1",
53
53
  "@semantic-release/github": "^9.0.4",
54
- "@semantic-release/npm": "^10.0.4",
55
- "@semantic-release/release-notes-generator": "^11.0.4",
56
- "babel-jest": "^29.6.2",
54
+ "@semantic-release/npm": "^10.0.5",
55
+ "@semantic-release/release-notes-generator": "^11.0.7",
56
+ "babel-jest": "^29.6.4",
57
57
  "cheerio": "^1.0.0-rc.12",
58
- "eslint": "^8.45.0",
58
+ "eslint": "^8.47.0",
59
59
  "eslint-config-standard": "^17.1.0",
60
- "eslint-plugin-import": "^2.28.0",
61
- "eslint-plugin-n": "^16.0.1",
60
+ "eslint-plugin-import": "^2.28.1",
61
+ "eslint-plugin-n": "^16.0.2",
62
62
  "eslint-plugin-promise": "^6.1.1",
63
- "jest-cli": "^29.6.2",
64
- "marked": "^7.0.0",
63
+ "jest-cli": "^29.6.4",
64
+ "marked": "^8.0.0",
65
65
  "node-fetch": "^3.3.2",
66
- "rollup": "^3.27.0",
67
- "semantic-release": "^21.0.7",
68
- "tsd": "^0.28.1"
66
+ "rollup": "^3.28.1",
67
+ "semantic-release": "^21.1.1",
68
+ "tsd": "^0.29.0"
69
69
  },
70
70
  "dependencies": {
71
71
  "@types/katex": "^0.16.2",
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(?=\s|$)/;
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 = {}) {