@yozora/tokenizer-link 2.3.0 → 2.3.2

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