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