@yozora/tokenizer-image 2.3.0 → 2.3.1

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/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.0/tokenizers/image#readme">@yozora/tokenizer-image</a>
5
+ <a href="https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/image#readme">@yozora/tokenizer-image</a>
6
6
  </h1>
7
7
  <div align="center">
8
8
  <a href="https://www.npmjs.com/package/@yozora/tokenizer-image">
@@ -53,35 +53,34 @@
53
53
 
54
54
  <!-- :end -->
55
55
 
56
- [@yozora/tokenizer-image] produce [Image][node-type] type nodes.
57
- See [documentation][docpage] for details.
56
+ [@yozora/tokenizer-image] produce [Image][node-type] type nodes. See [documentation][docpage] for
57
+ details.
58
58
 
59
59
  <!-- :begin use tokenizer/usage -->
60
60
 
61
61
  ## Install
62
62
 
63
- * npm
63
+ - npm
64
64
 
65
65
  ```bash
66
66
  npm install --save @yozora/tokenizer-image
67
67
  ```
68
68
 
69
- * yarn
69
+ - yarn
70
70
 
71
71
  ```bash
72
72
  yarn add @yozora/tokenizer-image
73
73
  ```
74
74
 
75
-
76
75
  ## Usage
77
76
 
78
- [@yozora/tokenizer-image][] has been integrated into [@yozora/parser][] / [@yozora/parser-gfm-ex][] / [@yozora/parser-gfm][],
79
- so you can use `YozoraParser` / `GfmExParser` / `GfmParser` directly.
77
+ [@yozora/tokenizer-image][] has been integrated into [@yozora/parser][] / [@yozora/parser-gfm-ex][]
78
+ / [@yozora/parser-gfm][], so you can use `YozoraParser` / `GfmExParser` / `GfmParser` directly.
80
79
 
81
80
  ### Basic Usage
82
81
 
83
- [@yozora/tokenizer-image][] cannot be used alone, it needs to be
84
- registered in *YastParser* as a plugin-in before it can be used.
82
+ [@yozora/tokenizer-image][] cannot be used alone, it needs to be registered in _YastParser_ as a
83
+ plugin-in before it can be used.
85
84
 
86
85
  ```typescript {4,9}
87
86
  import { DefaultParser } from '@yozora/core-parser'
@@ -141,40 +140,35 @@ parser.parse(`
141
140
 
142
141
  ### Options
143
142
 
144
- Name | Type | Required | Default
145
- :----------------:|:-----------:|:---------:|:--------------:
146
- `name` | `string` | `false` | `"@yozora/tokenizer-image"`
147
- `priority` | `number` | `false` | `TokenizerPriority.LINKS`
148
-
149
- * `name`: The unique name of the tokenizer, used to bind the token it generates,
150
- to determine the tokenizer that should be called in each life cycle of the
151
- token in the entire *matching / parsing* phase.
152
-
153
- * `priority`: Priority of the tokenizer, determine the order of processing,
154
- high priority priority execution. interruptable. In addition, in the `match-block`
155
- stage, a high-priority tokenizer can interrupt the matching process of a
156
- low-priority tokenizer.
143
+ | Name | Type | Required | Default |
144
+ | :--------: | :------: | :------: | :-------------------------: |
145
+ | `name` | `string` | `false` | `"@yozora/tokenizer-image"` |
146
+ | `priority` | `number` | `false` | `TokenizerPriority.LINKS` |
157
147
 
158
- **Exception:** Delimiters of type `full` are always processed before other type
159
- delimiters.
148
+ - `name`: The unique name of the tokenizer, used to bind the token it generates, to determine the
149
+ tokenizer that should be called in each life cycle of the token in the entire _matching / parsing_
150
+ phase.
160
151
 
152
+ - `priority`: Priority of the tokenizer, determine the order of processing, high priority priority
153
+ execution. interruptable. In addition, in the `match-block` stage, a high-priority tokenizer can
154
+ interrupt the matching process of a low-priority tokenizer.
161
155
 
156
+ **Exception:** Delimiters of type `full` are always processed before other type delimiters.
162
157
 
163
158
  <!-- :end -->
164
159
 
165
160
  ## Related
166
161
 
167
-
168
- * [@yozora/ast][]
169
- * [@yozora/parser][]
170
- * [@yozora/parser-gfm][]
171
- * [@yozora/parser-gfm-ex][]
172
- * [@yozora/tokenizer-image-reference][]
173
- * [@yozora/react-image][]
174
- * [@yozora/react-markdown][]
175
- * [Live Examples][live-examples]
176
- * [Image | Yozora AST][node-type]
177
- * [Documentation][docpage]
162
+ - [@yozora/ast][]
163
+ - [@yozora/parser][]
164
+ - [@yozora/parser-gfm][]
165
+ - [@yozora/parser-gfm-ex][]
166
+ - [@yozora/tokenizer-image-reference][]
167
+ - [@yozora/react-image][]
168
+ - [@yozora/react-markdown][]
169
+ - [Live Examples][live-examples]
170
+ - [Image | Yozora AST][node-type]
171
+ - [Documentation][docpage]
178
172
 
179
173
  [node-type]: http://yozora.guanghechen.com/docs/package/ast#image
180
174
 
@@ -182,143 +176,189 @@ Name | Type | Required | Default
182
176
 
183
177
  [live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-image#live-examples
184
178
  [docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-image
185
- [homepage]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/image#readme
179
+ [homepage]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/image#readme
186
180
  [gfm-spec]: https://github.github.com/gfm
187
181
  [mdast-homepage]: https://github.com/syntax-tree/mdast
188
-
189
- [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/ast#readme
190
- [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/ast-util#readme
191
- [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/character#readme
192
- [@yozora/eslint-config]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
193
- [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/core-parser#readme
194
- [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/core-tokenizer#readme
195
- [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/invariant#readme
196
- [@yozora/jest-for-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
197
- [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/parser#readme
198
- [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/parser-gfm#readme
199
- [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/v2.3.0/packages/parser-gfm-ex#readme
200
- [@yozora/template-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
201
- [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/admonition#readme
202
- [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/autolink#readme
203
- [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/autolink-extension#readme
204
- [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/blockquote#readme
205
- [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/break#readme
206
- [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/definition#readme
207
- [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/delete#readme
208
- [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/ecma-import#readme
209
- [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/emphasis#readme
210
- [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/fenced-block#readme
211
- [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/fenced-code#readme
212
- [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/footnote#readme
213
- [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/footnote-definition#readme
214
- [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/footnote-reference#readme
215
- [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/heading#readme
216
- [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/html-block#readme
217
- [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/html-inline#readme
218
- [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/image#readme
219
- [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/image-reference#readme
220
- [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/indented-code#readme
221
- [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/inline-code#readme
222
- [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/inline-math#readme
223
- [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/link#readme
224
- [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/link-reference#readme
225
- [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/list#readme
226
- [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/math#readme
227
- [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/paragraph#readme
228
- [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/setext-heading#readme
229
- [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/table#readme
230
- [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/text#readme
231
- [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/thematic-break#readme
232
-
233
- [@yozora/react-admonition]: https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
234
- [@yozora/react-blockquote]: https://github.com/yozorajs/yozora-react/tree/main/packages/blockquote#readme
235
- [@yozora/react-break]: https://github.com/yozorajs/yozora-react/tree/main/packages/break#readme
236
- [@yozora/react-delete]: https://github.com/yozorajs/yozora-react/tree/main/packages/delete#readme
237
- [@yozora/react-emphasis]: https://github.com/yozorajs/yozora-react/tree/main/packages/emphasis#readme
238
- [@yozora/react-code]: https://github.com/yozorajs/yozora-react/tree/main/packages/code#readme
239
- [@yozora/react-code-live]: https://github.com/yozorajs/yozora-react/tree/main/packages/code-live#readme
240
- [@yozora/react-footnote-definitions]: https://github.com/yozorajs/yozora-react/tree/main/packages/footnote-definitions#readme
241
- [@yozora/react-footnote-reference]: https://github.com/yozorajs/yozora-react/tree/main/packages/footnote-reference#readme
242
- [@yozora/react-heading]: https://github.com/yozorajs/yozora-react/tree/main/packages/heading#readme
243
- [@yozora/react-image]: https://github.com/yozorajs/yozora-react/tree/main/packages/image#readme
244
- [@yozora/react-inline-code]: https://github.com/yozorajs/yozora-react/tree/main/packages/inline-code#readme
245
- [@yozora/react-inline-math]: https://github.com/yozorajs/yozora-react/tree/main/packages/inline-math#readme
246
- [@yozora/react-link]: https://github.com/yozorajs/yozora-react/tree/main/packages/link#readme
247
- [@yozora/react-list]: https://github.com/yozorajs/yozora-react/tree/main/packages/list#readme
248
- [@yozora/react-list-item]: https://github.com/yozorajs/yozora-react/tree/main/packages/list-item#readme
249
- [@yozora/react-markdown]: https://github.com/yozorajs/yozora-react/tree/main/packages/markdown#readme
250
- [@yozora/react-math]: https://github.com/yozorajs/yozora-react/tree/main/packages/math#readme
251
- [@yozora/react-paragraph]: https://github.com/yozorajs/yozora-react/tree/main/packages/paragraph#readme
252
- [@yozora/react-strong]: https://github.com/yozorajs/yozora-react/tree/main/packages/strong#readme
253
- [@yozora/react-table]: https://github.com/yozorajs/yozora-react/tree/main/packages/table#readme
254
- [@yozora/react-text]: https://github.com/yozorajs/yozora-react/tree/main/packages/text#readme
255
- [@yozora/react-thematic-break]: https://github.com/yozorajs/yozora-react/tree/main/packages/thematic-break#readme
256
-
257
- [doc-live-examples/gfm]: https://yozora.guanghechen.com/docs/example/gfm
258
- [doc-@yozora/ast]: https://yozora.guanghechen.com/docs/package/ast
259
- [doc-@yozora/ast-util]: https://yozora.guanghechen.com/docs/package/ast-util
260
- [doc-@yozora/core-parser]: https://yozora.guanghechen.com/docs/package/core-parser
261
- [doc-@yozora/core-tokenizer]: https://yozora.guanghechen.com/docs/package/core-tokenizer
262
- [doc-@yozora/parser]: https://yozora.guanghechen.com/docs/package/parser
263
- [doc-@yozora/parser-gfm]: https://yozora.guanghechen.com/docs/package/parser-gfm
264
- [doc-@yozora/parser-gfm-ex]: https://yozora.guanghechen.com/docs/package/parser-gfm-ex
265
- [doc-@yozora/tokenizer-admonition]: https://yozora.guanghechen.com/docs/package/tokenizer-admonition
266
- [doc-@yozora/tokenizer-autolink]: https://yozora.guanghechen.com/docs/package/tokenizer-autolink
267
- [doc-@yozora/tokenizer-autolink-extension]: https://yozora.guanghechen.com/docs/package/tokenizer-autolink-extension
268
- [doc-@yozora/tokenizer-blockquote]: https://yozora.guanghechen.com/docs/package/tokenizer-blockquote
269
- [doc-@yozora/tokenizer-break]: https://yozora.guanghechen.com/docs/package/tokenizer-break
270
- [doc-@yozora/tokenizer-delete]: https://yozora.guanghechen.com/docs/package/tokenizer-delete
271
- [doc-@yozora/tokenizer-emphasis]: https://yozora.guanghechen.com/docs/package/tokenizer-emphasis
272
- [doc-@yozora/tokenizer-fenced-code]: https://yozora.guanghechen.com/docs/package/tokenizer-fenced-code
273
- [doc-@yozora/tokenizer-heading]: https://yozora.guanghechen.com/docs/package/tokenizer-heading
274
- [doc-@yozora/tokenizer-html-block]: https://yozora.guanghechen.com/docs/package/tokenizer-html-block
275
- [doc-@yozora/tokenizer-html-inline]: https://yozora.guanghechen.com/docs/package/tokenizer-html-inline
276
- [doc-@yozora/tokenizer-image]: https://yozora.guanghechen.com/docs/package/tokenizer-image
277
- [doc-@yozora/tokenizer-image-reference]: https://yozora.guanghechen.com/docs/package/tokenizer-image-reference
278
- [doc-@yozora/tokenizer-indented-code]: https://yozora.guanghechen.com/docs/package/tokenizer-indented-code
279
- [doc-@yozora/tokenizer-inline-code]: https://yozora.guanghechen.com/docs/package/tokenizer-inline-code
280
- [doc-@yozora/tokenizer-inline-math]: https://yozora.guanghechen.com/docs/package/tokenizer-inline-math
281
- [doc-@yozora/tokenizer-link]: https://yozora.guanghechen.com/docs/package/tokenizer-link
282
- [doc-@yozora/tokenizer-definition]: https://yozora.guanghechen.com/docs/package/tokenizer-definition
283
- [doc-@yozora/tokenizer-link-reference]: https://yozora.guanghechen.com/docs/package/tokenizer-link-reference
284
- [doc-@yozora/tokenizer-list]: https://yozora.guanghechen.com/docs/package/tokenizer-list
285
- [doc-@yozora/tokenizer-math]: https://yozora.guanghechen.com/docs/package/tokenizer-math
286
- [doc-@yozora/tokenizer-paragraph]: https://yozora.guanghechen.com/docs/package/tokenizer-paragraph
287
- [doc-@yozora/tokenizer-setext-heading]: https://yozora.guanghechen.com/docs/package/tokenizer-setext-heading
288
- [doc-@yozora/tokenizer-table]: https://yozora.guanghechen.com/docs/package/tokenizer-table
289
- [doc-@yozora/tokenizer-text]: https://yozora.guanghechen.com/docs/package/tokenizer-text
290
- [doc-@yozora/tokenizer-thematic-break]: https://yozora.guanghechen.com/docs/package/tokenizer-thematic-break
291
- [doc-@yozora/jest-for-tokenizer]: https://yozora.guanghechen.com/docs/package/jest-for-tokenizer
292
- [doc-@yozora/parser-gfm]: https://yozora.guanghechen.com/docs/package/parser-gfm
293
-
294
- [gfm-atx-heading]: https://github.github.com/gfm/#atx-heading
295
- [gfm-autolink]: https://github.github.com/gfm/#autolinks
296
- [gfm-autolink-extension]: https://github.github.com/gfm/#autolinks-extension-
297
- [gfm-blockquote]: https://github.github.com/gfm/#block-quotes
298
- [gfm-bullet-list]: https://github.github.com/gfm/#bullet-list
299
- [gfm-delete]: https://github.github.com/gfm/#strikethrough-extension-
300
- [gfm-emphasis]: https://github.github.com/gfm/#can-open-emphasis
301
- [gfm-fenced-code]: https://github.github.com/gfm/#fenced-code-block
302
- [gfm-hard-line-break]: https://github.github.com/gfm/#hard-line-break
303
- [gfm-html-block]: https://github.github.com/gfm/#html-block
304
- [gfm-html-inline]: https://github.github.com/gfm/#raw-html
305
- [gfm-image]: https://github.github.com/gfm/#images
306
- [gfm-image-reference]: https://github.github.com/gfm/#example-590
307
- [gfm-indented-code]: https://github.github.com/gfm/#indented-code-block
308
- [gfm-inline-code]: https://github.github.com/gfm/#code-span
309
- [gfm-link]: https://github.github.com/gfm/#inline-link
310
- [gfm-definition]: https://github.github.com/gfm/#link-reference-definition
311
- [gfm-link-reference]: https://github.github.com/gfm/#reference-link
312
- [gfm-list]: https://github.github.com/gfm/#lists
313
- [gfm-list-item]: https://github.github.com/gfm/#list-items
314
- [gfm-list-task-item]: https://github.github.com/gfm/#task-list-items-extension-
315
- [gfm-paragraph]: https://github.github.com/gfm/#paragraph
316
- [gfm-setext-heading]: https://github.github.com/gfm/#setext-heading
317
- [gfm-soft-line-break]: https://github.github.com/gfm/#soft-line-breaks
318
- [gfm-strong]: https://github.github.com/gfm/#can-open-strong-emphasis
319
- [gfm-tab]: https://github.github.com/gfm/#tabs
320
- [gfm-table]: https://github.github.com/gfm/#table
321
- [gfm-text]: https://github.github.com/gfm/#soft-line-breaks
322
- [gfm-thematic-break]: https://github.github.com/gfm/#thematic-break
182
+ [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/ast#readme
183
+ [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/ast-util#readme
184
+ [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/character#readme
185
+ [@yozora/eslint-config]:
186
+ https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
187
+ [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/core-parser#readme
188
+ [@yozora/core-tokenizer]:
189
+ https://github.com/yozorajs/yozora/tree/v2.3.1/packages/core-tokenizer#readme
190
+ [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/invariant#readme
191
+ [@yozora/jest-for-tokenizer]:
192
+ https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
193
+ [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/parser#readme
194
+ [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.3.1/packages/parser-gfm#readme
195
+ [@yozora/parser-gfm-ex]:
196
+ https://github.com/yozorajs/yozora/tree/v2.3.1/packages/parser-gfm-ex#readme
197
+ [@yozora/template-tokenizer]:
198
+ https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
199
+ [@yozora/tokenizer-admonition]:
200
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/admonition#readme
201
+ [@yozora/tokenizer-autolink]:
202
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/autolink#readme
203
+ [@yozora/tokenizer-autolink-extension]:
204
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/autolink-extension#readme
205
+ [@yozora/tokenizer-blockquote]:
206
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/blockquote#readme
207
+ [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/break#readme
208
+ [@yozora/tokenizer-definition]:
209
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/definition#readme
210
+ [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/delete#readme
211
+ [@yozora/tokenizer-ecma-import]:
212
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/ecma-import#readme
213
+ [@yozora/tokenizer-emphasis]:
214
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/emphasis#readme
215
+ [@yozora/tokenizer-fenced-block]:
216
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/fenced-block#readme
217
+ [@yozora/tokenizer-fenced-code]:
218
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/fenced-code#readme
219
+ [@yozora/tokenizer-footnote]:
220
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/footnote#readme
221
+ [@yozora/tokenizer-footnote-definition]:
222
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/footnote-definition#readme
223
+ [@yozora/tokenizer-footnote-reference]:
224
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/footnote-reference#readme
225
+ [@yozora/tokenizer-heading]:
226
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/heading#readme
227
+ [@yozora/tokenizer-html-block]:
228
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/html-block#readme
229
+ [@yozora/tokenizer-html-inline]:
230
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/html-inline#readme
231
+ [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/image#readme
232
+ [@yozora/tokenizer-image-reference]:
233
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/image-reference#readme
234
+ [@yozora/tokenizer-indented-code]:
235
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/indented-code#readme
236
+ [@yozora/tokenizer-inline-code]:
237
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/inline-code#readme
238
+ [@yozora/tokenizer-inline-math]:
239
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/inline-math#readme
240
+ [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/link#readme
241
+ [@yozora/tokenizer-link-reference]:
242
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/link-reference#readme
243
+ [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/list#readme
244
+ [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/math#readme
245
+ [@yozora/tokenizer-paragraph]:
246
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/paragraph#readme
247
+ [@yozora/tokenizer-setext-heading]:
248
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/setext-heading#readme
249
+ [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/table#readme
250
+ [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/text#readme
251
+ [@yozora/tokenizer-thematic-break]:
252
+ https://github.com/yozorajs/yozora/tree/v2.3.1/tokenizers/thematic-break#readme
253
+ [@yozora/react-admonition]:
254
+ https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
255
+ [@yozora/react-blockquote]:
256
+ https://github.com/yozorajs/yozora-react/tree/main/packages/blockquote#readme
257
+ [@yozora/react-break]: https://github.com/yozorajs/yozora-react/tree/main/packages/break#readme
258
+ [@yozora/react-delete]: https://github.com/yozorajs/yozora-react/tree/main/packages/delete#readme
259
+ [@yozora/react-emphasis]:
260
+ https://github.com/yozorajs/yozora-react/tree/main/packages/emphasis#readme
261
+ [@yozora/react-code]: https://github.com/yozorajs/yozora-react/tree/main/packages/code#readme
262
+ [@yozora/react-code-live]:
263
+ https://github.com/yozorajs/yozora-react/tree/main/packages/code-live#readme
264
+ [@yozora/react-footnote-definitions]:
265
+ https://github.com/yozorajs/yozora-react/tree/main/packages/footnote-definitions#readme
266
+ [@yozora/react-footnote-reference]:
267
+ https://github.com/yozorajs/yozora-react/tree/main/packages/footnote-reference#readme
268
+ [@yozora/react-heading]: https://github.com/yozorajs/yozora-react/tree/main/packages/heading#readme
269
+ [@yozora/react-image]: https://github.com/yozorajs/yozora-react/tree/main/packages/image#readme
270
+ [@yozora/react-inline-code]:
271
+ https://github.com/yozorajs/yozora-react/tree/main/packages/inline-code#readme
272
+ [@yozora/react-inline-math]:
273
+ https://github.com/yozorajs/yozora-react/tree/main/packages/inline-math#readme
274
+ [@yozora/react-link]: https://github.com/yozorajs/yozora-react/tree/main/packages/link#readme
275
+ [@yozora/react-list]: https://github.com/yozorajs/yozora-react/tree/main/packages/list#readme
276
+ [@yozora/react-list-item]:
277
+ https://github.com/yozorajs/yozora-react/tree/main/packages/list-item#readme
278
+ [@yozora/react-markdown]:
279
+ https://github.com/yozorajs/yozora-react/tree/main/packages/markdown#readme
280
+ [@yozora/react-math]: https://github.com/yozorajs/yozora-react/tree/main/packages/math#readme
281
+ [@yozora/react-paragraph]:
282
+ https://github.com/yozorajs/yozora-react/tree/main/packages/paragraph#readme
283
+ [@yozora/react-strong]: https://github.com/yozorajs/yozora-react/tree/main/packages/strong#readme
284
+ [@yozora/react-table]: https://github.com/yozorajs/yozora-react/tree/main/packages/table#readme
285
+ [@yozora/react-text]: https://github.com/yozorajs/yozora-react/tree/main/packages/text#readme
286
+ [@yozora/react-thematic-break]:
287
+ https://github.com/yozorajs/yozora-react/tree/main/packages/thematic-break#readme
288
+ [doc-live-examples/gfm]: https://yozora.guanghechen.com/docs/example/gfm
289
+ [doc-@yozora/ast]: https://yozora.guanghechen.com/docs/package/ast
290
+ [doc-@yozora/ast-util]: https://yozora.guanghechen.com/docs/package/ast-util
291
+ [doc-@yozora/core-parser]: https://yozora.guanghechen.com/docs/package/core-parser
292
+ [doc-@yozora/core-tokenizer]: https://yozora.guanghechen.com/docs/package/core-tokenizer
293
+ [doc-@yozora/parser]: https://yozora.guanghechen.com/docs/package/parser
294
+ [doc-@yozora/parser-gfm]: https://yozora.guanghechen.com/docs/package/parser-gfm
295
+ [doc-@yozora/parser-gfm-ex]: https://yozora.guanghechen.com/docs/package/parser-gfm-ex
296
+ [doc-@yozora/tokenizer-admonition]: https://yozora.guanghechen.com/docs/package/tokenizer-admonition
297
+ [doc-@yozora/tokenizer-autolink]: https://yozora.guanghechen.com/docs/package/tokenizer-autolink
298
+ [doc-@yozora/tokenizer-autolink-extension]:
299
+ https://yozora.guanghechen.com/docs/package/tokenizer-autolink-extension
300
+ [doc-@yozora/tokenizer-blockquote]: https://yozora.guanghechen.com/docs/package/tokenizer-blockquote
301
+ [doc-@yozora/tokenizer-break]: https://yozora.guanghechen.com/docs/package/tokenizer-break
302
+ [doc-@yozora/tokenizer-delete]: https://yozora.guanghechen.com/docs/package/tokenizer-delete
303
+ [doc-@yozora/tokenizer-emphasis]: https://yozora.guanghechen.com/docs/package/tokenizer-emphasis
304
+ [doc-@yozora/tokenizer-fenced-code]:
305
+ https://yozora.guanghechen.com/docs/package/tokenizer-fenced-code
306
+ [doc-@yozora/tokenizer-heading]: https://yozora.guanghechen.com/docs/package/tokenizer-heading
307
+ [doc-@yozora/tokenizer-html-block]: https://yozora.guanghechen.com/docs/package/tokenizer-html-block
308
+ [doc-@yozora/tokenizer-html-inline]:
309
+ https://yozora.guanghechen.com/docs/package/tokenizer-html-inline
310
+ [doc-@yozora/tokenizer-image]: https://yozora.guanghechen.com/docs/package/tokenizer-image
311
+ [doc-@yozora/tokenizer-image-reference]:
312
+ https://yozora.guanghechen.com/docs/package/tokenizer-image-reference
313
+ [doc-@yozora/tokenizer-indented-code]:
314
+ https://yozora.guanghechen.com/docs/package/tokenizer-indented-code
315
+ [doc-@yozora/tokenizer-inline-code]:
316
+ https://yozora.guanghechen.com/docs/package/tokenizer-inline-code
317
+ [doc-@yozora/tokenizer-inline-math]:
318
+ https://yozora.guanghechen.com/docs/package/tokenizer-inline-math
319
+ [doc-@yozora/tokenizer-link]: https://yozora.guanghechen.com/docs/package/tokenizer-link
320
+ [doc-@yozora/tokenizer-definition]: https://yozora.guanghechen.com/docs/package/tokenizer-definition
321
+ [doc-@yozora/tokenizer-link-reference]:
322
+ https://yozora.guanghechen.com/docs/package/tokenizer-link-reference
323
+ [doc-@yozora/tokenizer-list]: https://yozora.guanghechen.com/docs/package/tokenizer-list
324
+ [doc-@yozora/tokenizer-math]: https://yozora.guanghechen.com/docs/package/tokenizer-math
325
+ [doc-@yozora/tokenizer-paragraph]: https://yozora.guanghechen.com/docs/package/tokenizer-paragraph
326
+ [doc-@yozora/tokenizer-setext-heading]:
327
+ https://yozora.guanghechen.com/docs/package/tokenizer-setext-heading
328
+ [doc-@yozora/tokenizer-table]: https://yozora.guanghechen.com/docs/package/tokenizer-table
329
+ [doc-@yozora/tokenizer-text]: https://yozora.guanghechen.com/docs/package/tokenizer-text
330
+ [doc-@yozora/tokenizer-thematic-break]:
331
+ https://yozora.guanghechen.com/docs/package/tokenizer-thematic-break
332
+ [doc-@yozora/jest-for-tokenizer]: https://yozora.guanghechen.com/docs/package/jest-for-tokenizer
333
+ [doc-@yozora/parser-gfm]: https://yozora.guanghechen.com/docs/package/parser-gfm
334
+ [gfm-atx-heading]: https://github.github.com/gfm/#atx-heading
335
+ [gfm-autolink]: https://github.github.com/gfm/#autolinks
336
+ [gfm-autolink-extension]: https://github.github.com/gfm/#autolinks-extension-
337
+ [gfm-blockquote]: https://github.github.com/gfm/#block-quotes
338
+ [gfm-bullet-list]: https://github.github.com/gfm/#bullet-list
339
+ [gfm-delete]: https://github.github.com/gfm/#strikethrough-extension-
340
+ [gfm-emphasis]: https://github.github.com/gfm/#can-open-emphasis
341
+ [gfm-fenced-code]: https://github.github.com/gfm/#fenced-code-block
342
+ [gfm-hard-line-break]: https://github.github.com/gfm/#hard-line-break
343
+ [gfm-html-block]: https://github.github.com/gfm/#html-block
344
+ [gfm-html-inline]: https://github.github.com/gfm/#raw-html
345
+ [gfm-image]: https://github.github.com/gfm/#images
346
+ [gfm-image-reference]: https://github.github.com/gfm/#example-590
347
+ [gfm-indented-code]: https://github.github.com/gfm/#indented-code-block
348
+ [gfm-inline-code]: https://github.github.com/gfm/#code-span
349
+ [gfm-link]: https://github.github.com/gfm/#inline-link
350
+ [gfm-definition]: https://github.github.com/gfm/#link-reference-definition
351
+ [gfm-link-reference]: https://github.github.com/gfm/#reference-link
352
+ [gfm-list]: https://github.github.com/gfm/#lists
353
+ [gfm-list-item]: https://github.github.com/gfm/#list-items
354
+ [gfm-list-task-item]: https://github.github.com/gfm/#task-list-items-extension-
355
+ [gfm-paragraph]: https://github.github.com/gfm/#paragraph
356
+ [gfm-setext-heading]: https://github.github.com/gfm/#setext-heading
357
+ [gfm-soft-line-break]: https://github.github.com/gfm/#soft-line-breaks
358
+ [gfm-strong]: https://github.github.com/gfm/#can-open-strong-emphasis
359
+ [gfm-tab]: https://github.github.com/gfm/#tabs
360
+ [gfm-table]: https://github.github.com/gfm/#table
361
+ [gfm-text]: https://github.github.com/gfm/#soft-line-breaks
362
+ [gfm-thematic-break]: https://github.github.com/gfm/#thematic-break
323
363
 
324
364
  <!-- :end -->
package/lib/cjs/index.cjs CHANGED
@@ -121,7 +121,7 @@ const parse = function (api) {
121
121
  endIndex -= 1;
122
122
  }
123
123
  const destination = character.calcEscapedStringFromNodePoints(nodePoints, startIndex, endIndex, true);
124
- url = coreTokenizer.encodeLinkDestination(destination);
124
+ url = api.formatUrl(destination);
125
125
  }
126
126
  const children = api.parseInlineTokens(token.children);
127
127
  const alt = calcImageAlt(children);
@@ -157,3 +157,4 @@ exports.calcImageAlt = calcImageAlt;
157
157
  exports.default = ImageTokenizer;
158
158
  exports.imageMatch = match;
159
159
  exports.imageParse = parse;
160
+ //# sourceMappingURL=index.cjs.map
package/lib/esm/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ImageType } from '@yozora/ast';
2
2
  import { AsciiCodePoint, calcEscapedStringFromNodePoints } from '@yozora/character';
3
- import { genFindDelimiter, eatOptionalWhitespaces, encodeLinkDestination, BaseInlineTokenizer, TokenizerPriority } from '@yozora/core-tokenizer';
3
+ import { genFindDelimiter, eatOptionalWhitespaces, BaseInlineTokenizer, TokenizerPriority } from '@yozora/core-tokenizer';
4
4
  import { eatLinkDestination, eatLinkTitle, checkBalancedBracketsStatus } from '@yozora/tokenizer-link';
5
5
 
6
6
  function calcImageAlt(nodes) {
@@ -117,7 +117,7 @@ const parse = function (api) {
117
117
  endIndex -= 1;
118
118
  }
119
119
  const destination = calcEscapedStringFromNodePoints(nodePoints, startIndex, endIndex, true);
120
- url = encodeLinkDestination(destination);
120
+ url = api.formatUrl(destination);
121
121
  }
122
122
  const children = api.parseInlineTokens(token.children);
123
123
  const alt = calcImageAlt(children);
@@ -148,3 +148,4 @@ class ImageTokenizer extends BaseInlineTokenizer {
148
148
  }
149
149
 
150
150
  export { ImageTokenizer, uniqueName as ImageTokenizerName, calcImageAlt, ImageTokenizer as default, match as imageMatch, parse as imageParse };
151
+ //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-image",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
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"
12
12
  },
13
- "homepage": "https://github.com/yozorajs/yozora/tree/v2.2.0/tokenizers/image",
13
+ "homepage": "https://github.com/yozorajs/yozora/tree/v2.3.0/tokenizers/image",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  "types": "./lib/types/index.d.ts",
@@ -33,16 +33,11 @@
33
33
  "LICENSE",
34
34
  "README.md"
35
35
  ],
36
- "scripts": {
37
- "build": "rimraf lib/ && cross-env NODE_ENV=production rollup -c ../../rollup.config.mjs",
38
- "prepublishOnly": "cross-env ROLLUP_SHOULD_SOURCEMAP=false yarn build",
39
- "test": "node --experimental-vm-modules ../../node_modules/.bin/jest --config ../../jest.config.mjs --rootDir ."
40
- },
41
36
  "dependencies": {
42
- "@yozora/ast": "^2.3.0",
43
- "@yozora/character": "^2.3.0",
44
- "@yozora/core-tokenizer": "^2.3.0",
45
- "@yozora/tokenizer-link": "^2.3.0"
37
+ "@yozora/ast": "^2.3.1",
38
+ "@yozora/character": "^2.3.1",
39
+ "@yozora/core-tokenizer": "^2.3.1",
40
+ "@yozora/tokenizer-link": "^2.3.1"
46
41
  },
47
- "gitHead": "f8ed6c970eabd41d6528847a1803cb4ec0eaadf7"
42
+ "gitHead": "eaea7c3649e7e7886a1c3a85125b8c6268fdab20"
48
43
  }