@yozora/tokenizer-list 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 CHANGED
@@ -1,36 +1,43 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
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
- * fix(math): should handle the eatAndInterruptPreviousSibling manually ([ef96d32](https://github.com/yozorajs/yozora/commit/ef96d32))
13
- * chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
14
-
3
+ ## 2.3.14
15
4
 
5
+ ### Patch Changes
16
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
17
14
 
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
18
17
 
19
- ## <small>2.3.11 (2025-01-13)</small>
18
+ ## <small>2.3.13 (2025-11-30)</small>
20
19
 
21
- * fix(math): should handle the eatAndInterruptPreviousSibling manually ([ef96d32](https://github.com/yozorajs/yozora/commit/ef96d32))
20
+ - :bug: fix(tokenizer-list): prevent bullet markers from being detected in middle of text
21
+ ([18eb505](https://github.com/yozorajs/yozora/commit/18eb505))
22
22
 
23
+ ## <small>2.3.12 (2025-02-26)</small>
23
24
 
25
+ - :bookmark: release: publish v2.3.10 ([a36b4dd](https://github.com/yozorajs/yozora/commit/a36b4dd))
26
+ - :bookmark: release: publish v2.3.11 ([dcc0a95](https://github.com/yozorajs/yozora/commit/dcc0a95))
27
+ - :bookmark: release: publish v2.3.8 ([c4ddb8b](https://github.com/yozorajs/yozora/commit/c4ddb8b))
28
+ - :bookmark: release: publish v2.3.9 ([d125df1](https://github.com/yozorajs/yozora/commit/d125df1))
29
+ - fix(math): should handle the eatAndInterruptPreviousSibling manually
30
+ ([ef96d32](https://github.com/yozorajs/yozora/commit/ef96d32))
31
+ - chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
24
32
 
33
+ ## <small>2.3.11 (2025-01-13)</small>
25
34
 
35
+ - fix(math): should handle the eatAndInterruptPreviousSibling manually
36
+ ([ef96d32](https://github.com/yozorajs/yozora/commit/ef96d32))
26
37
 
27
38
  ## <small>2.3.10 (2025-01-09)</small>
28
39
 
29
- * chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
30
-
31
-
32
-
33
-
40
+ - chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
34
41
 
35
42
  # Change Log
36
43
 
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.12/tokenizers/list#readme">@yozora/tokenizer-list</a>
5
+ <a href="https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme">@yozora/tokenizer-list</a>
6
6
  </h1>
7
7
  <div align="center">
8
8
  <a href="https://www.npmjs.com/package/@yozora/tokenizer-list">
@@ -66,11 +66,6 @@ children) type nodes. See [documentation][docpage] for details.
66
66
  npm install --save @yozora/tokenizer-list
67
67
  ```
68
68
 
69
- - yarn
70
-
71
- ```bash
72
- yarn add @yozora/tokenizer-list
73
- ```
74
69
 
75
70
  ## Usage
76
71
 
@@ -258,81 +253,81 @@ a. This is an another type of ordered list item
258
253
 
259
254
  [live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-list#live-examples
260
255
  [docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-list
261
- [homepage]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/list#readme
256
+ [homepage]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme
262
257
  [gfm-spec]: https://github.github.com/gfm
263
258
  [mdast-homepage]: https://github.com/syntax-tree/mdast#list
264
259
  [mdast-homepage:list-item]: https://github.com/syntax-tree/mdast#listitem
265
- [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/ast#readme
266
- [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/ast-util#readme
267
- [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/character#readme
260
+ [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast#readme
261
+ [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast-util#readme
262
+ [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/character#readme
268
263
  [@yozora/eslint-config]:
269
264
  https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
270
- [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/core-parser#readme
265
+ [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-parser#readme
271
266
  [@yozora/core-tokenizer]:
272
- https://github.com/yozorajs/yozora/tree/v2.3.12/packages/core-tokenizer#readme
273
- [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/invariant#readme
267
+ https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-tokenizer#readme
268
+ [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/invariant#readme
274
269
  [@yozora/jest-for-tokenizer]:
275
270
  https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
276
- [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/parser#readme
277
- [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.12/packages/parser-gfm#readme
271
+ [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser#readme
272
+ [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm#readme
278
273
  [@yozora/parser-gfm-ex]:
279
- https://github.com/yozorajs/yozora/tree/v2.3.12/packages/parser-gfm-ex#readme
274
+ https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm-ex#readme
280
275
  [@yozora/template-tokenizer]:
281
276
  https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
282
277
  [@yozora/tokenizer-admonition]:
283
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/admonition#readme
278
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/admonition#readme
284
279
  [@yozora/tokenizer-autolink]:
285
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/autolink#readme
280
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink#readme
286
281
  [@yozora/tokenizer-autolink-extension]:
287
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/autolink-extension#readme
282
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink-extension#readme
288
283
  [@yozora/tokenizer-blockquote]:
289
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/blockquote#readme
290
- [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/break#readme
284
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/blockquote#readme
285
+ [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/break#readme
291
286
  [@yozora/tokenizer-definition]:
292
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/definition#readme
293
- [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/delete#readme
287
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/definition#readme
288
+ [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/delete#readme
294
289
  [@yozora/tokenizer-ecma-import]:
295
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/ecma-import#readme
290
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/ecma-import#readme
296
291
  [@yozora/tokenizer-emphasis]:
297
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/emphasis#readme
292
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/emphasis#readme
298
293
  [@yozora/tokenizer-fenced-block]:
299
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/fenced-block#readme
294
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-block#readme
300
295
  [@yozora/tokenizer-fenced-code]:
301
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/fenced-code#readme
296
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-code#readme
302
297
  [@yozora/tokenizer-footnote]:
303
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/footnote#readme
298
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote#readme
304
299
  [@yozora/tokenizer-footnote-definition]:
305
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/footnote-definition#readme
300
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-definition#readme
306
301
  [@yozora/tokenizer-footnote-reference]:
307
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/footnote-reference#readme
302
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-reference#readme
308
303
  [@yozora/tokenizer-heading]:
309
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/heading#readme
304
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/heading#readme
310
305
  [@yozora/tokenizer-html-block]:
311
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/html-block#readme
306
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-block#readme
312
307
  [@yozora/tokenizer-html-inline]:
313
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/html-inline#readme
314
- [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/image#readme
308
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-inline#readme
309
+ [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image#readme
315
310
  [@yozora/tokenizer-image-reference]:
316
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/image-reference#readme
311
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image-reference#readme
317
312
  [@yozora/tokenizer-indented-code]:
318
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/indented-code#readme
313
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/indented-code#readme
319
314
  [@yozora/tokenizer-inline-code]:
320
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/inline-code#readme
315
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-code#readme
321
316
  [@yozora/tokenizer-inline-math]:
322
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/inline-math#readme
323
- [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/link#readme
317
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme
318
+ [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link#readme
324
319
  [@yozora/tokenizer-link-reference]:
325
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/link-reference#readme
326
- [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/list#readme
327
- [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/math#readme
320
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link-reference#readme
321
+ [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme
322
+ [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/math#readme
328
323
  [@yozora/tokenizer-paragraph]:
329
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/paragraph#readme
324
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/paragraph#readme
330
325
  [@yozora/tokenizer-setext-heading]:
331
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/setext-heading#readme
332
- [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/table#readme
333
- [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/text#readme
326
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/setext-heading#readme
327
+ [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/table#readme
328
+ [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/text#readme
334
329
  [@yozora/tokenizer-thematic-break]:
335
- https://github.com/yozorajs/yozora/tree/v2.3.12/tokenizers/thematic-break#readme
330
+ https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/thematic-break#readme
336
331
  [@yozora/react-admonition]:
337
332
  https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
338
333
  [@yozora/react-blockquote]:
package/lib/cjs/index.cjs CHANGED
@@ -61,6 +61,8 @@ const match = function () {
61
61
  }
62
62
  }
63
63
  if (!ordered) {
64
+ i = firstNonWhitespaceIndex;
65
+ c = nodePoints[i].codePoint;
64
66
  if (c === character.AsciiCodePoint.PLUS_SIGN ||
65
67
  c === character.AsciiCodePoint.MINUS_SIGN ||
66
68
  c === character.AsciiCodePoint.ASTERISK) {
package/lib/esm/index.mjs CHANGED
@@ -57,6 +57,8 @@ const match = function () {
57
57
  }
58
58
  }
59
59
  if (!ordered) {
60
+ i = firstNonWhitespaceIndex;
61
+ c = nodePoints[i].codePoint;
60
62
  if (c === AsciiCodePoint.PLUS_SIGN ||
61
63
  c === AsciiCodePoint.MINUS_SIGN ||
62
64
  c === AsciiCodePoint.ASTERISK) {
@@ -1,5 +1,5 @@
1
- import { ListType, TaskStatus, List, NodeType } from '@yozora/ast';
2
- import { IPartialBlockToken, IBlockToken, ITokenizer, IBaseBlockTokenizerProps, BaseBlockTokenizer, IBlockTokenizer, IMatchBlockHookCreator, IParseBlockHookCreator } from '@yozora/core-tokenizer';
1
+ import { ListType, TaskStatus, NodeType, List } from '@yozora/ast';
2
+ import { IPartialBlockToken, IBlockToken, IBaseBlockTokenizerProps, ITokenizer, BaseBlockTokenizer, IBlockTokenizer, IMatchBlockHookCreator, IParseBlockHookCreator } from '@yozora/core-tokenizer';
3
3
 
4
4
  type T = ListType;
5
5
  type INode = List;
@@ -82,4 +82,5 @@ declare class ListTokenizer extends BaseBlockTokenizer<T, IToken, INode, IThis>
82
82
  readonly parse: IParseBlockHookCreator<T, IToken, INode, IThis>;
83
83
  }
84
84
 
85
- export { type IToken as IListToken, type ITokenizerProps as IListTokenizerProps, ListTokenizer, uniqueName as ListTokenizerName, ListTokenizer as default };
85
+ export { ListTokenizer, uniqueName as ListTokenizerName, ListTokenizer as default };
86
+ export type { IToken as IListToken, ITokenizerProps as IListTokenizerProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-list",
3
- "version": "2.3.12",
3
+ "version": "2.3.14",
4
4
  "author": {
5
5
  "name": "guanghechen",
6
6
  "url": "https://github.com/guanghechen/"
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/yozorajs/yozora.git",
11
11
  "directory": "tokenizers/list"
12
12
  },
13
- "homepage": "https://github.com/yozorajs/yozora/tree/v2.3.11/tokenizers/list",
13
+ "homepage": "https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  "types": "./lib/types/index.d.ts",
@@ -22,9 +22,6 @@
22
22
  "main": "./lib/cjs/index.cjs",
23
23
  "module": "./lib/esm/index.mjs",
24
24
  "license": "MIT",
25
- "engines": {
26
- "node": ">= 16.0.0"
27
- },
28
25
  "files": [
29
26
  "lib/",
30
27
  "!lib/**/*.map",
@@ -34,9 +31,15 @@
34
31
  "README.md"
35
32
  ],
36
33
  "dependencies": {
37
- "@yozora/ast": "^2.3.12",
38
- "@yozora/character": "^2.3.12",
39
- "@yozora/core-tokenizer": "^2.3.12"
34
+ "@yozora/ast": "^2.3.14",
35
+ "@yozora/character": "^2.3.14",
36
+ "@yozora/core-tokenizer": "^2.3.14"
40
37
  },
41
- "gitHead": "2899b0fd92b5c22f501870f2d2a365f5b6fa16cf"
42
- }
38
+ "scripts": {
39
+ "build": "rollup -c ../../rollup.config.mjs",
40
+ "clean": "rimraf lib",
41
+ "test": "vitest run --config ../../vitest.config.ts",
42
+ "test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
43
+ "test:update": "vitest run --config ../../vitest.config.ts -u"
44
+ }
45
+ }