@yozora/tokenizer-image-reference 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 +24 -17
- package/README.md +42 -47
- package/lib/types/index.d.ts +3 -2
- package/package.json +16 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,42 @@
|
|
|
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
|
-
* chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
13
|
-
|
|
3
|
+
## 2.3.14
|
|
14
4
|
|
|
5
|
+
### Patch Changes
|
|
15
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
|
|
14
|
+
- @yozora/tokenizer-image@2.3.14
|
|
15
|
+
- @yozora/tokenizer-link@2.3.14
|
|
16
|
+
- @yozora/tokenizer-link-reference@2.3.14
|
|
16
17
|
|
|
18
|
+
All notable changes to this project will be documented in this file. See
|
|
19
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
17
20
|
|
|
18
|
-
## <small>2.3.
|
|
21
|
+
## <small>2.3.13 (2025-11-30)</small>
|
|
19
22
|
|
|
20
23
|
**Note:** Version bump only for package @yozora/tokenizer-image-reference
|
|
21
24
|
|
|
25
|
+
## <small>2.3.12 (2025-02-26)</small>
|
|
22
26
|
|
|
27
|
+
- :bookmark: release: publish v2.3.10 ([a36b4dd](https://github.com/yozorajs/yozora/commit/a36b4dd))
|
|
28
|
+
- :bookmark: release: publish v2.3.11 ([dcc0a95](https://github.com/yozorajs/yozora/commit/dcc0a95))
|
|
29
|
+
- :bookmark: release: publish v2.3.8 ([c4ddb8b](https://github.com/yozorajs/yozora/commit/c4ddb8b))
|
|
30
|
+
- :bookmark: release: publish v2.3.9 ([d125df1](https://github.com/yozorajs/yozora/commit/d125df1))
|
|
31
|
+
- chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
23
32
|
|
|
33
|
+
## <small>2.3.11 (2025-01-13)</small>
|
|
24
34
|
|
|
35
|
+
**Note:** Version bump only for package @yozora/tokenizer-image-reference
|
|
25
36
|
|
|
26
37
|
## <small>2.3.10 (2025-01-09)</small>
|
|
27
38
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
39
|
+
- chore: fix nx dependencies ([d11d405](https://github.com/yozorajs/yozora/commit/d11d405))
|
|
33
40
|
|
|
34
41
|
# Change Log
|
|
35
42
|
|
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/image-reference#readme">@yozora/tokenizer-image-reference</a>
|
|
6
6
|
</h1>
|
|
7
7
|
<div align="center">
|
|
8
8
|
<a href="https://www.npmjs.com/package/@yozora/tokenizer-image-reference">
|
|
@@ -66,11 +66,6 @@
|
|
|
66
66
|
npm install --save @yozora/tokenizer-image-reference
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
- yarn
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
yarn add @yozora/tokenizer-image-reference
|
|
73
|
-
```
|
|
74
69
|
|
|
75
70
|
## Usage
|
|
76
71
|
|
|
@@ -185,80 +180,80 @@ parser.parse(`
|
|
|
185
180
|
|
|
186
181
|
[live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-image-reference#live-examples
|
|
187
182
|
[docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-image-reference
|
|
188
|
-
[homepage]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
183
|
+
[homepage]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image-reference#readme
|
|
189
184
|
[gfm-spec]: https://github.github.com/gfm
|
|
190
185
|
[mdast-homepage]: https://github.com/syntax-tree/mdast
|
|
191
|
-
[@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
192
|
-
[@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
193
|
-
[@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
186
|
+
[@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast#readme
|
|
187
|
+
[@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/ast-util#readme
|
|
188
|
+
[@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/character#readme
|
|
194
189
|
[@yozora/eslint-config]:
|
|
195
190
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
|
|
196
|
-
[@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
191
|
+
[@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-parser#readme
|
|
197
192
|
[@yozora/core-tokenizer]:
|
|
198
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
199
|
-
[@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
193
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/packages/core-tokenizer#readme
|
|
194
|
+
[@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/invariant#readme
|
|
200
195
|
[@yozora/jest-for-tokenizer]:
|
|
201
196
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
|
|
202
|
-
[@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
203
|
-
[@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
197
|
+
[@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser#readme
|
|
198
|
+
[@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm#readme
|
|
204
199
|
[@yozora/parser-gfm-ex]:
|
|
205
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
200
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/packages/parser-gfm-ex#readme
|
|
206
201
|
[@yozora/template-tokenizer]:
|
|
207
202
|
https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
|
|
208
203
|
[@yozora/tokenizer-admonition]:
|
|
209
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
204
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/admonition#readme
|
|
210
205
|
[@yozora/tokenizer-autolink]:
|
|
211
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
206
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink#readme
|
|
212
207
|
[@yozora/tokenizer-autolink-extension]:
|
|
213
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
208
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/autolink-extension#readme
|
|
214
209
|
[@yozora/tokenizer-blockquote]:
|
|
215
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
216
|
-
[@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
210
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/blockquote#readme
|
|
211
|
+
[@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/break#readme
|
|
217
212
|
[@yozora/tokenizer-definition]:
|
|
218
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
219
|
-
[@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
213
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/definition#readme
|
|
214
|
+
[@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/delete#readme
|
|
220
215
|
[@yozora/tokenizer-ecma-import]:
|
|
221
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
216
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/ecma-import#readme
|
|
222
217
|
[@yozora/tokenizer-emphasis]:
|
|
223
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
218
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/emphasis#readme
|
|
224
219
|
[@yozora/tokenizer-fenced-block]:
|
|
225
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
220
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-block#readme
|
|
226
221
|
[@yozora/tokenizer-fenced-code]:
|
|
227
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
222
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/fenced-code#readme
|
|
228
223
|
[@yozora/tokenizer-footnote]:
|
|
229
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
224
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote#readme
|
|
230
225
|
[@yozora/tokenizer-footnote-definition]:
|
|
231
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
226
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-definition#readme
|
|
232
227
|
[@yozora/tokenizer-footnote-reference]:
|
|
233
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
228
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/footnote-reference#readme
|
|
234
229
|
[@yozora/tokenizer-heading]:
|
|
235
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
230
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/heading#readme
|
|
236
231
|
[@yozora/tokenizer-html-block]:
|
|
237
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
232
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-block#readme
|
|
238
233
|
[@yozora/tokenizer-html-inline]:
|
|
239
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
240
|
-
[@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
234
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/html-inline#readme
|
|
235
|
+
[@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image#readme
|
|
241
236
|
[@yozora/tokenizer-image-reference]:
|
|
242
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
237
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image-reference#readme
|
|
243
238
|
[@yozora/tokenizer-indented-code]:
|
|
244
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
239
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/indented-code#readme
|
|
245
240
|
[@yozora/tokenizer-inline-code]:
|
|
246
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
241
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-code#readme
|
|
247
242
|
[@yozora/tokenizer-inline-math]:
|
|
248
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
249
|
-
[@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
243
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/inline-math#readme
|
|
244
|
+
[@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link#readme
|
|
250
245
|
[@yozora/tokenizer-link-reference]:
|
|
251
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
252
|
-
[@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
253
|
-
[@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
246
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/link-reference#readme
|
|
247
|
+
[@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/list#readme
|
|
248
|
+
[@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/math#readme
|
|
254
249
|
[@yozora/tokenizer-paragraph]:
|
|
255
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
250
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/paragraph#readme
|
|
256
251
|
[@yozora/tokenizer-setext-heading]:
|
|
257
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
258
|
-
[@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
259
|
-
[@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.
|
|
252
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/setext-heading#readme
|
|
253
|
+
[@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/table#readme
|
|
254
|
+
[@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/text#readme
|
|
260
255
|
[@yozora/tokenizer-thematic-break]:
|
|
261
|
-
https://github.com/yozorajs/yozora/tree/v2.3.
|
|
256
|
+
https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/thematic-break#readme
|
|
262
257
|
[@yozora/react-admonition]:
|
|
263
258
|
https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
|
|
264
259
|
[@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 { ImageReferenceType, Association, Reference, ImageReference } from '@yozora/ast';
|
|
3
3
|
import { ILinkReferenceDelimiterBracket } from '@yozora/tokenizer-link-reference';
|
|
4
4
|
|
|
@@ -58,4 +58,5 @@ declare class ImageReferenceTokenizer extends BaseInlineTokenizer<T, IDelimiter,
|
|
|
58
58
|
readonly parse: IParseInlineHookCreator<T, IToken, INode, IThis>;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { ImageReferenceTokenizer, uniqueName as ImageReferenceTokenizerName, ImageReferenceTokenizer as default, match as imageReferenceMatch, parse as imageReferenceParse };
|
|
62
|
+
export type { IThis as IImageReferenceHookContext, IToken as IImageReferenceToken, ITokenizerProps as IImageReferenceTokenizerProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-image-reference",
|
|
3
|
-
"version": "2.3.
|
|
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/image-reference"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/yozorajs/yozora/tree/v2.3.
|
|
13
|
+
"homepage": "https://github.com/yozorajs/yozora/tree/v2.3.13/tokenizers/image-reference#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,12 +31,18 @@
|
|
|
34
31
|
"README.md"
|
|
35
32
|
],
|
|
36
33
|
"dependencies": {
|
|
37
|
-
"@yozora/ast": "^2.3.
|
|
38
|
-
"@yozora/character": "^2.3.
|
|
39
|
-
"@yozora/
|
|
40
|
-
"@yozora/tokenizer-
|
|
41
|
-
"@yozora/tokenizer-link": "^2.3.
|
|
42
|
-
"@yozora/tokenizer
|
|
34
|
+
"@yozora/ast": "^2.3.14",
|
|
35
|
+
"@yozora/character": "^2.3.14",
|
|
36
|
+
"@yozora/tokenizer-image": "^2.3.14",
|
|
37
|
+
"@yozora/tokenizer-link": "^2.3.14",
|
|
38
|
+
"@yozora/tokenizer-link-reference": "^2.3.14",
|
|
39
|
+
"@yozora/core-tokenizer": "^2.3.14"
|
|
43
40
|
},
|
|
44
|
-
"
|
|
45
|
-
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "rollup -c ../../rollup.config.mjs",
|
|
43
|
+
"clean": "rimraf lib",
|
|
44
|
+
"test": "vitest run --config ../../vitest.config.ts",
|
|
45
|
+
"test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
|
|
46
|
+
"test:update": "vitest run --config ../../vitest.config.ts -u"
|
|
47
|
+
}
|
|
48
|
+
}
|