@yozora/tokenizer-inline-math 2.0.0-alpha.3 → 2.0.2-alpha.0

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/cjs/index.js CHANGED
@@ -138,7 +138,7 @@ const parse = function (api) {
138
138
  endIndex -= 1;
139
139
  }
140
140
  }
141
- const value = character.calcStringFromNodePoints(nodePoints, startIndex, endIndex).replace(/\n/, ' ');
141
+ const value = character.calcStringFromNodePoints(nodePoints, startIndex, endIndex).replace(/\n/g, ' ');
142
142
  const node = api.shouldReservePosition
143
143
  ? { type: ast.InlineMathType, position: api.calcPosition(token), value }
144
144
  : { type: ast.InlineMathType, value };
package/lib/esm/index.js CHANGED
@@ -134,7 +134,7 @@ const parse = function (api) {
134
134
  endIndex -= 1;
135
135
  }
136
136
  }
137
- const value = calcStringFromNodePoints(nodePoints, startIndex, endIndex).replace(/\n/, ' ');
137
+ const value = calcStringFromNodePoints(nodePoints, startIndex, endIndex).replace(/\n/g, ' ');
138
138
  const node = api.shouldReservePosition
139
139
  ? { type: InlineMathType, position: api.calcPosition(token), value }
140
140
  : { type: InlineMathType, value };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-inline-math",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.2-alpha.0",
4
4
  "description": "Tokenizer for processing inline math (formulas)",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -45,12 +45,12 @@
45
45
  "test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
46
46
  },
47
47
  "dependencies": {
48
- "@yozora/ast": "^2.0.0-alpha.3",
49
- "@yozora/character": "^2.0.0-alpha.3",
50
- "@yozora/core-tokenizer": "^2.0.0-alpha.3"
48
+ "@yozora/ast": "^2.0.2-alpha.0",
49
+ "@yozora/character": "^2.0.2-alpha.0",
50
+ "@yozora/core-tokenizer": "^2.0.2-alpha.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@yozora/tokenizer-inline-code": "^2.0.0-alpha.3"
53
+ "@yozora/tokenizer-inline-code": "^2.0.2-alpha.0"
54
54
  },
55
- "gitHead": "9f274fc7487a8c1dd213405d92508f9a7621f730"
55
+ "gitHead": "430eaabd83f4a1ee29398ee1798aa4511976c38f"
56
56
  }