@yozora/tokenizer-inline-math 2.3.12 → 2.3.14
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/CHANGELOG.md +29 -21
- package/README.md +42 -47
- package/lib/types/index.d.ts +3 -2
- package/package.json +13 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,38 +1,46 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## <small>2.3.12 (2025-02-26)</small>
|
|
7
|
-
|
|
8
|
-
* :bookmark: release: publish v2.3.10 ([a36b4dd](https://github.com/yozorajs/yozora/commit/a36b4dd))
|
|
9
|
-
* :bookmark: release: publish v2.3.11 ([dcc0a95](https://github.com/yozorajs/yozora/commit/dcc0a95))
|
|
10
|
-
* :bookmark: release: publish v2.3.8 ([c4ddb8b](https://github.com/yozorajs/yozora/commit/c4ddb8b))
|
|
11
|
-
* :bookmark: release: publish v2.3.9 ([d125df1](https://github.com/yozorajs/yozora/commit/d125df1))
|
|
12
|
-
* :bug: fix(inline-math): the delimiter could be adjacent to a punctuation character ([a6071be](https://github.com/yozorajs/yozora/commit/a6071be))
|
|
13
|
-
* improve(inline-math): the inline dollars should take high processing priority so the delimiter bound ([3dba582](https://github.com/yozorajs/yozora/commit/3dba582))
|
|
14
|
-
* improve(inlineMath): support more than one dollar sign as delimiter ([bf17c33](https://github.com/yozorajs/yozora/commit/bf17c33))
|
|
15
|
-
* chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
16
|
-
|
|
3
|
+
## 2.3.14
|
|
17
4
|
|
|
5
|
+
### Patch Changes
|
|
18
6
|
|
|
7
|
+
- Patch release for all public packages: align monorepo tooling with pnpm + changesets, update
|
|
8
|
+
package metadata and docs, and include test and configuration improvements for release
|
|
9
|
+
consistency.
|
|
10
|
+
- Updated dependencies:
|
|
11
|
+
- @yozora/ast@2.3.14
|
|
12
|
+
- @yozora/character@2.3.14
|
|
13
|
+
- @yozora/core-tokenizer@2.3.14
|
|
19
14
|
|
|
15
|
+
All notable changes to this project will be documented in this file. See
|
|
16
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
20
17
|
|
|
21
|
-
## <small>2.3.
|
|
18
|
+
## <small>2.3.13 (2025-11-30)</small>
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
**Note:** Version bump only for package @yozora/tokenizer-inline-math
|
|
24
21
|
|
|
22
|
+
## <small>2.3.12 (2025-02-26)</small>
|
|
25
23
|
|
|
24
|
+
- :bookmark: release: publish v2.3.10 ([a36b4dd](https://github.com/yozorajs/yozora/commit/a36b4dd))
|
|
25
|
+
- :bookmark: release: publish v2.3.11 ([dcc0a95](https://github.com/yozorajs/yozora/commit/dcc0a95))
|
|
26
|
+
- :bookmark: release: publish v2.3.8 ([c4ddb8b](https://github.com/yozorajs/yozora/commit/c4ddb8b))
|
|
27
|
+
- :bookmark: release: publish v2.3.9 ([d125df1](https://github.com/yozorajs/yozora/commit/d125df1))
|
|
28
|
+
- :bug: fix(inline-math): the delimiter could be adjacent to a punctuation character
|
|
29
|
+
([a6071be](https://github.com/yozorajs/yozora/commit/a6071be))
|
|
30
|
+
- improve(inline-math): the inline dollars should take high processing priority so the delimiter
|
|
31
|
+
bound ([3dba582](https://github.com/yozorajs/yozora/commit/3dba582))
|
|
32
|
+
- improve(inlineMath): support more than one dollar sign as delimiter
|
|
33
|
+
([bf17c33](https://github.com/yozorajs/yozora/commit/bf17c33))
|
|
34
|
+
- chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
26
35
|
|
|
36
|
+
## <small>2.3.11 (2025-01-13)</small>
|
|
27
37
|
|
|
38
|
+
- improve(inline-math): the inline dollars should take high processing priority so the delimiter
|
|
39
|
+
bound ([3dba582](https://github.com/yozorajs/yozora/commit/3dba582))
|
|
28
40
|
|
|
29
41
|
## <small>2.3.10 (2025-01-09)</small>
|
|
30
42
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
- chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
36
44
|
|
|
37
45
|
# Change Log
|
|
38
46
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<header>
|
|
4
4
|
<h1 align="center">
|
|
5
|
-
<a href="https://github.com/yozorajs/yozora/tree/v2.3.
|
|
5
|
+
<a href="https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme">@yozora/tokenizer-inline-math</a>
|
|
6
6
|
</h1>
|
|
7
7
|
<div align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@yozora/tokenizer-inline-math">
|
|
@@ -64,11 +64,6 @@
|
|
|
64
64
|
npm install --save @yozora/tokenizer-inline-math
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
- yarn
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
yarn add @yozora/tokenizer-inline-math
|
|
71
|
-
```
|
|
72
67
|
|
|
73
68
|
## Usage
|
|
74
69
|
|
|
@@ -181,80 +176,80 @@ parser.parse("`$x^2 + y^2 = z^2, x < 0$`")
|
|
|
181
176
|
|
|
182
177
|
[live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-inline-math#live-examples
|
|
183
178
|
[docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-inline-math
|
|
184
|
-
[homepage]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
179
|
+
[homepage]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme
|
|
185
180
|
[gfm-spec]: https://github.github.com/gfm
|
|
186
181
|
[mdast-homepage]: https://github.com/syntax-tree/mdast
|
|
187
|
-
[@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
188
|
-
[@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
189
|
-
[@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
182
|
+
[@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast#readme
|
|
183
|
+
[@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast-util#readme
|
|
184
|
+
[@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/character#readme
|
|
190
185
|
[@yozora/eslint-config]:
|
|
191
186
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
|
|
192
|
-
[@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
187
|
+
[@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-parser#readme
|
|
193
188
|
[@yozora/core-tokenizer]:
|
|
194
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
195
|
-
[@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
189
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-tokenizer#readme
|
|
190
|
+
[@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/invariant#readme
|
|
196
191
|
[@yozora/jest-for-tokenizer]:
|
|
197
192
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
|
|
198
|
-
[@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
199
|
-
[@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
193
|
+
[@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser#readme
|
|
194
|
+
[@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm#readme
|
|
200
195
|
[@yozora/parser-gfm-ex]:
|
|
201
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
196
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm-ex#readme
|
|
202
197
|
[@yozora/template-tokenizer]:
|
|
203
198
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
|
|
204
199
|
[@yozora/tokenizer-admonition]:
|
|
205
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
200
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/admonition#readme
|
|
206
201
|
[@yozora/tokenizer-autolink]:
|
|
207
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
202
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink#readme
|
|
208
203
|
[@yozora/tokenizer-autolink-extension]:
|
|
209
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
204
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink-extension#readme
|
|
210
205
|
[@yozora/tokenizer-blockquote]:
|
|
211
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
212
|
-
[@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
206
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/blockquote#readme
|
|
207
|
+
[@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/break#readme
|
|
213
208
|
[@yozora/tokenizer-definition]:
|
|
214
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
215
|
-
[@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
209
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/definition#readme
|
|
210
|
+
[@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/delete#readme
|
|
216
211
|
[@yozora/tokenizer-ecma-import]:
|
|
217
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
212
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/ecma-import#readme
|
|
218
213
|
[@yozora/tokenizer-emphasis]:
|
|
219
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
214
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/emphasis#readme
|
|
220
215
|
[@yozora/tokenizer-fenced-block]:
|
|
221
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
216
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-block#readme
|
|
222
217
|
[@yozora/tokenizer-fenced-code]:
|
|
223
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
218
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-code#readme
|
|
224
219
|
[@yozora/tokenizer-footnote]:
|
|
225
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
220
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote#readme
|
|
226
221
|
[@yozora/tokenizer-footnote-definition]:
|
|
227
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
222
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-definition#readme
|
|
228
223
|
[@yozora/tokenizer-footnote-reference]:
|
|
229
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
224
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-reference#readme
|
|
230
225
|
[@yozora/tokenizer-heading]:
|
|
231
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
226
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/heading#readme
|
|
232
227
|
[@yozora/tokenizer-html-block]:
|
|
233
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
228
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-block#readme
|
|
234
229
|
[@yozora/tokenizer-html-inline]:
|
|
235
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
236
|
-
[@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
230
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-inline#readme
|
|
231
|
+
[@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image#readme
|
|
237
232
|
[@yozora/tokenizer-image-reference]:
|
|
238
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
233
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image-reference#readme
|
|
239
234
|
[@yozora/tokenizer-indented-code]:
|
|
240
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
235
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/indented-code#readme
|
|
241
236
|
[@yozora/tokenizer-inline-code]:
|
|
242
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
237
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-code#readme
|
|
243
238
|
[@yozora/tokenizer-inline-math]:
|
|
244
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
245
|
-
[@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
239
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme
|
|
240
|
+
[@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link#readme
|
|
246
241
|
[@yozora/tokenizer-link-reference]:
|
|
247
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
248
|
-
[@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
249
|
-
[@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
242
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link-reference#readme
|
|
243
|
+
[@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme
|
|
244
|
+
[@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/math#readme
|
|
250
245
|
[@yozora/tokenizer-paragraph]:
|
|
251
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
246
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/paragraph#readme
|
|
252
247
|
[@yozora/tokenizer-setext-heading]:
|
|
253
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
254
|
-
[@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
255
|
-
[@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
248
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/setext-heading#readme
|
|
249
|
+
[@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/table#readme
|
|
250
|
+
[@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/text#readme
|
|
256
251
|
[@yozora/tokenizer-thematic-break]:
|
|
257
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
252
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/thematic-break#readme
|
|
258
253
|
[@yozora/react-admonition]:
|
|
259
254
|
https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
|
|
260
255
|
[@yozora/react-blockquote]:
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITokenizer, IPartialInlineToken, IBaseInlineTokenizerProps, ITokenDelimiter, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
|
|
2
2
|
import { InlineMathType, InlineMath } from '@yozora/ast';
|
|
3
3
|
|
|
4
4
|
type T = InlineMathType;
|
|
@@ -45,4 +45,5 @@ declare class InlineMathTokenizer extends BaseInlineTokenizer<T, IDelimiter, ITo
|
|
|
45
45
|
constructor(props?: ITokenizerProps);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { InlineMathTokenizer, uniqueName as InlineMathTokenizerName, uniqueName_withBacktick as InlineMathTokenizerName_withBacktick, InlineMathTokenizer as default, match as inlineMathMatch, matchWithBacktick as inlineMathMatchWithBacktick, parse as inlineMathParse };
|
|
49
|
+
export type { IThis as IInlineMathHookContext, IToken as IInlineMathToken, ITokenizerProps as IInlineMathTokenizerProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-inline-math",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.14",
|
|
4
4
|
"description": "Tokenizer for processing inline math (formulas)",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "guanghechen",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"url": "https://github.com/yozorajs/yozora.git",
|
|
12
12
|
"directory": "tokenizers/inline-math"
|
|
13
13
|
},
|
|
14
|
-
"homepage": "https://github.com/yozorajs/yozora/tree/v2.3.
|
|
14
|
+
"homepage": "https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"yozora",
|
|
17
17
|
"markdown",
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
"main": "./lib/cjs/index.cjs",
|
|
33
33
|
"module": "./lib/esm/index.mjs",
|
|
34
34
|
"license": "MIT",
|
|
35
|
-
"engines": {
|
|
36
|
-
"node": ">= 16.0.0"
|
|
37
|
-
},
|
|
38
35
|
"files": [
|
|
39
36
|
"lib/",
|
|
40
37
|
"!lib/**/*.map",
|
|
@@ -44,9 +41,15 @@
|
|
|
44
41
|
"README.md"
|
|
45
42
|
],
|
|
46
43
|
"dependencies": {
|
|
47
|
-
"@yozora/ast": "^2.3.
|
|
48
|
-
"@yozora/character": "^2.3.
|
|
49
|
-
"@yozora/core-tokenizer": "^2.3.
|
|
44
|
+
"@yozora/ast": "^2.3.14",
|
|
45
|
+
"@yozora/character": "^2.3.14",
|
|
46
|
+
"@yozora/core-tokenizer": "^2.3.14"
|
|
50
47
|
},
|
|
51
|
-
"
|
|
52
|
-
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "rollup -c ../../rollup.config.mjs",
|
|
50
|
+
"clean": "rimraf lib",
|
|
51
|
+
"test": "vitest run --config ../../vitest.config.ts",
|
|
52
|
+
"test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
|
|
53
|
+
"test:update": "vitest run --config ../../vitest.config.ts -u"
|
|
54
|
+
}
|
|
55
|
+
}
|