@yozora/tokenizer-autolink 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,699 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.1.5](https://github.com/yozorajs/yozora/compare/v2.1.4...v2.1.5) (2023-05-13)
7
+
8
+
9
+ ### Performance Improvements
10
+
11
+ * 🔧 don't sourcemaps into tarball ([fc37aa8](https://github.com/yozorajs/yozora/commit/fc37aa8847ac4ad78ecb31f198e1cd6a85e91bcf))
12
+ * 📝 update CHANGELOGs ([c51b283](https://github.com/yozorajs/yozora/commit/c51b283874f8a562b6ed9fad46a0b7d578f6eb42))
13
+
14
+
15
+
16
+
17
+
18
+ ## 2.1.4 (2023-04-02)
19
+
20
+
21
+ ### Performance Improvements
22
+
23
+ * 🔧 don't pack src/ folder into tarball ([c9fac38](https://github.com/yozorajs/yozora/commit/c9fac382e9a7a8d6454452b0c4d5b57dac16455f))
24
+ * 🔖 publish v2.1.4 ([aa464ed](https://github.com/yozorajs/yozora/commit/aa464ed1e3cd84892773a833910cfc53a556bf5f))
25
+
26
+
27
+
28
+ ## 2.1.3 (2023-03-23)
29
+
30
+
31
+ ### Performance Improvements
32
+
33
+ * 🔖 publish v2.1.3 ([9abaaff](https://github.com/yozorajs/yozora/commit/9abaaff74a12d0bae0f645813241ff947a0d828c))
34
+
35
+
36
+
37
+ ## 2.1.2 (2023-03-11)
38
+
39
+
40
+ ### Performance Improvements
41
+
42
+ * 🔖 publish v2.1.2 ([992baca](https://github.com/yozorajs/yozora/commit/992bacafd173e7788e99fed34ce8b45f6ed24cfe))
43
+
44
+
45
+
46
+ ## 2.1.1 (2023-03-10)
47
+
48
+
49
+ ### Performance Improvements
50
+
51
+ * 💥 prefer shorter types ([b93307f](https://github.com/yozorajs/yozora/commit/b93307f3c2372598dd8ca4fcbf04e80ce58d903d))
52
+ * 🔖 publish v2.1.1 ([257a36d](https://github.com/yozorajs/yozora/commit/257a36d8dc079d4ac226405c155b238e7099bcea))
53
+
54
+
55
+
56
+ ## 2.0.6 (2023-03-05)
57
+
58
+
59
+ ### Performance Improvements
60
+
61
+ * 🔖 publish v2.0.6 ([a263c53](https://github.com/yozorajs/yozora/commit/a263c5338103824347bac74d437051e9fbb6d791))
62
+
63
+
64
+
65
+ ## 2.0.5 (2023-01-09)
66
+
67
+
68
+ ### Performance Improvements
69
+
70
+ * 🔖 publish v2.0.5 ([7ba3bab](https://github.com/yozorajs/yozora/commit/7ba3bab49fe65cf2f57082c0503af73da9356cf0))
71
+
72
+
73
+
74
+ ## 2.0.5-alpha.0 (2023-01-05)
75
+
76
+
77
+ ### Performance Improvements
78
+
79
+ * 🔧 fix test configuration ([f50b2d7](https://github.com/yozorajs/yozora/commit/f50b2d7600139e0ea54e042b025365d81f4518b5))
80
+ * 🔖 publish v2.0.5-alpha.0 ([8bf941f](https://github.com/yozorajs/yozora/commit/8bf941fe4ef82947165b0f3cc123cd493665e13b))
81
+ * 🔧 update package entries ([2c94f27](https://github.com/yozorajs/yozora/commit/2c94f27ffb645119a863f2ceee68a6b1b7285a67))
82
+ * ⬆️ upgrade devDependencies ([13059a9](https://github.com/yozorajs/yozora/commit/13059a924f3ae3b7fd69080ec9e82cde34a0f097))
83
+
84
+
85
+
86
+ ## 2.0.4 (2022-11-02)
87
+
88
+
89
+ ### Performance Improvements
90
+
91
+ * 🔖 publish v2.0.4 ([c980b95](https://github.com/yozorajs/yozora/commit/c980b95254394dcacba0cbb4bea251350b09397c))
92
+
93
+
94
+
95
+ ## 2.0.3 (2022-10-11)
96
+
97
+
98
+ ### Performance Improvements
99
+
100
+ * 🔖 publish v2.0.3 ([8cc8f95](https://github.com/yozorajs/yozora/commit/8cc8f95cfebc8d752bc3272cdd24965f540c130b))
101
+ * 🔧 update build script ([d934cad](https://github.com/yozorajs/yozora/commit/d934cad21a4ab763621ca6a72379cd4294caa605))
102
+
103
+
104
+
105
+ ## 2.0.2 (2022-09-24)
106
+
107
+
108
+ ### Performance Improvements
109
+
110
+ * 📝 fix invalid links ([eb304c9](https://github.com/yozorajs/yozora/commit/eb304c931b2e682cf156bbceae0a20655777381e))
111
+ * 🔖 publish v2.0.2 ([6911295](https://github.com/yozorajs/yozora/commit/6911295e9eacfa29563fe93494704190e50625fd))
112
+ * 🔧 support node@16.x.x ([eda301f](https://github.com/yozorajs/yozora/commit/eda301fe1047e380de5be915ae730206a026f07b))
113
+ * 📝 update links ([4467fe6](https://github.com/yozorajs/yozora/commit/4467fe646e0a95fcc7206658189884f68872bc4e))
114
+
115
+
116
+
117
+ ## 2.0.2-alpha.0 (2022-05-22)
118
+
119
+
120
+ ### Performance Improvements
121
+
122
+ * 🔖 publish v2.0.2-alpha.0 ([430eaab](https://github.com/yozorajs/yozora/commit/430eaabd83f4a1ee29398ee1798aa4511976c38f))
123
+
124
+
125
+
126
+ ## 2.0.1 (2022-05-21)
127
+
128
+
129
+ ### Performance Improvements
130
+
131
+ * ✅ refactor test utils & rename createTester to createTokenizerTester ([7f2ce75](https://github.com/yozorajs/yozora/commit/7f2ce7571a336370d419aa01073bf8054783cfd9))
132
+ * 🔖 publish v2.0.1 ([3aea330](https://github.com/yozorajs/yozora/commit/3aea33091e402bd6c7754d91d549e8d648475073))
133
+
134
+
135
+
136
+ # 2.0.0 (2022-01-15)
137
+
138
+
139
+ ### Performance Improvements
140
+
141
+ * 🔖 publish v2.0.0 ([65e99d1](https://github.com/yozorajs/yozora/commit/65e99d1709fdd1c918465dce6b1e91de96bdab5e))
142
+
143
+
144
+
145
+ # 2.0.0-alpha.3 (2022-01-12)
146
+
147
+
148
+ ### Features
149
+
150
+ * 💥 [breaking] remove 'I' prefix for AST node types ([cad4b0b](https://github.com/yozorajs/yozora/commit/cad4b0b5b8061ea495f6455ef1554bb3c8f223a0))
151
+ * 💥 [breaking] remove 'IYastNode' prefix for AST types ([35c8fd2](https://github.com/yozorajs/yozora/commit/35c8fd2a6c27fb0bdb4020ccda5974ad05748c46))
152
+
153
+
154
+ ### Performance Improvements
155
+
156
+ * 🔖 publish v2.0.0-alpha.3 ([9f274fc](https://github.com/yozorajs/yozora/commit/9f274fc7487a8c1dd213405d92508f9a7621f730))
157
+
158
+
159
+
160
+ # 2.0.0-alpha.2 (2022-01-09)
161
+
162
+
163
+ ### Performance Improvements
164
+
165
+ * 🎨 refactor parse-inline hooks ([455cfbd](https://github.com/yozorajs/yozora/commit/455cfbdfec9f3d7a738d0b3f23655805b1eaea0b))
166
+ * 🎨 refactor removePosition ([87a974f](https://github.com/yozorajs/yozora/commit/87a974fd744ae937d5778d3cdba4b345141bcaf6))
167
+ * 🔖 publish v2.0.0-alpha.2 ([da59d85](https://github.com/yozorajs/yozora/commit/da59d85520455c59a117a35032ef1a035c10ea21))
168
+ * 🎨 simplify codes ([0712473](https://github.com/yozorajs/yozora/commit/0712473e824f532844e73f9e2023b591fb6bd6a5))
169
+
170
+
171
+
172
+ # 2.0.0-alpha.1 (2022-01-08)
173
+
174
+
175
+ ### Bug Fixes
176
+
177
+ * 🐛 fix incorrect export names ([b2d1fa7](https://github.com/yozorajs/yozora/commit/b2d1fa71d774bd78c87aa51435ba89593ebbeb24))
178
+
179
+
180
+ ### Performance Improvements
181
+
182
+ * 🎨 refactor inline tokenizers ([b3ff235](https://github.com/yozorajs/yozora/commit/b3ff235f31f18e6ae511aaa4f96919f4eb90fa5c))
183
+ * 🔖 publish v2.0.0-alpha.1 ([86202e1](https://github.com/yozorajs/yozora/commit/86202e1d2b03ccfc2ab030517d9d314f7aee7666))
184
+ * 🎨 rename IHookContext to IThis ([04d5470](https://github.com/yozorajs/yozora/commit/04d5470c9949c4acfe6239289d34a8b5c6191e71))
185
+ * 📝 update READMEs ([320afeb](https://github.com/yozorajs/yozora/commit/320afebd6c500cbbce5fd65c1cd184bbd2224f25))
186
+
187
+
188
+
189
+ # 2.0.0-alpha.0 (2022-01-03)
190
+
191
+
192
+ ### Features
193
+
194
+ * 💥 [breaking] rename types with 'I' prefix ([d37d862](https://github.com/yozorajs/yozora/commit/d37d862212831dbe75ac92a6dbdadf2fa81cce8c))
195
+
196
+
197
+ ### Performance Improvements
198
+
199
+ * 💥 refactor inline tokenizers ([85e2d65](https://github.com/yozorajs/yozora/commit/85e2d655baf1e4f2010cbf9d80ed3a4f2d390d5c))
200
+ * 🔖 publish v2.0.0-alpha.0 ([0171501](https://github.com/yozorajs/yozora/commit/0171501339c49ffd02ed16a63447fa20a47a29a7))
201
+ * 🎨 rename parser hooks ([ef6cbc5](https://github.com/yozorajs/yozora/commit/ef6cbc51323e6ef9d4cd78f1c7194ae1f7819245))
202
+ * 🎨 set print width to 100 ([657a621](https://github.com/yozorajs/yozora/commit/657a6211cad52d5f1b183e7bcd7ea227b2aa7724))
203
+
204
+
205
+
206
+ # 1.3.0 (2021-10-09)
207
+
208
+
209
+ ### Features
210
+
211
+ * 💥 move func parameter `nodePoints` to api.getNodePoints() ([6bbfd4e](https://github.com/yozorajs/yozora/commit/6bbfd4e9c57240eeca0acb01a0bbc83c0eafa978))
212
+ * 💥 move func parameter `nodePoints` to api.getNodePoints() ([10e5033](https://github.com/yozorajs/yozora/commit/10e503332b40dac35be93878d6763051e7022352))
213
+
214
+
215
+ ### Performance Improvements
216
+
217
+ * 🔖 publish v1.3.0 ([18c9b16](https://github.com/yozorajs/yozora/commit/18c9b167004ad97718b2f94f25139f80598cbf7a))
218
+ * 🎨 set the default `children` to empty array instead of undefined ([8fe26ca](https://github.com/yozorajs/yozora/commit/8fe26ca085ec7d48148895fddbec019a84c24a8a))
219
+
220
+
221
+
222
+ ## 1.2.2 (2021-09-06)
223
+
224
+
225
+ ### Performance Improvements
226
+
227
+ * 🔖 publish v1.2.2 ([fb4b804](https://github.com/yozorajs/yozora/commit/fb4b804548592c09259aabcf9cc4dd96176bd024))
228
+
229
+
230
+
231
+ ## 1.2.1 (2021-09-04)
232
+
233
+
234
+ ### Performance Improvements
235
+
236
+ * 🔖 publish v1.2.1 ([d98d07d](https://github.com/yozorajs/yozora/commit/d98d07d7c56dd9f6bb60149b2b0a4be2787e1046))
237
+
238
+
239
+
240
+ # 1.2.0 (2021-08-22)
241
+
242
+
243
+ ### Performance Improvements
244
+
245
+ * 🔖 publish v1.2.0 ([86da40e](https://github.com/yozorajs/yozora/commit/86da40e50d2fe9acace68695288e15e012e6cd0d))
246
+
247
+
248
+
249
+ # 1.2.0-alpha.1 (2021-08-16)
250
+
251
+
252
+ ### Performance Improvements
253
+
254
+ * 🔖 publish v1.2.0-alpha.1 ([ce3c173](https://github.com/yozorajs/yozora/commit/ce3c17330085f22404668a388f2bee6f57e6e958))
255
+
256
+
257
+
258
+ # 1.2.0-alpha.0 (2021-08-15)
259
+
260
+
261
+ ### Performance Improvements
262
+
263
+ * 🔖 publish v1.2.0-alpha.0 ([bd8ef45](https://github.com/yozorajs/yozora/commit/bd8ef455a22963834a70339f42178138aab28df6))
264
+
265
+
266
+
267
+ # 1.1.0 (2021-08-12)
268
+
269
+
270
+ ### Performance Improvements
271
+
272
+ * 🔖 publish v1.1.0 ([a8c7cff](https://github.com/yozorajs/yozora/commit/a8c7cffcbdc36930ab3c744450c8feb4395a9fac))
273
+ * 📝 update related references ([e2c8c7e](https://github.com/yozorajs/yozora/commit/e2c8c7e6ff8c5c1da27ca224d5c5d0eb4e5fbca7))
274
+
275
+
276
+
277
+ # 1.1.0-alpha.2 (2021-08-07)
278
+
279
+
280
+ ### Performance Improvements
281
+
282
+ * 🔖 publish v1.1.0-alpha.2 ([d88b8ec](https://github.com/yozorajs/yozora/commit/d88b8eca03118b9f2a8b00ac4106ea82e779bc94))
283
+
284
+
285
+
286
+ # 1.1.0-alpha.1 (2021-08-01)
287
+
288
+
289
+ ### Performance Improvements
290
+
291
+ * 🔖 publish v1.1.0-alpha.1 ([0d6aa91](https://github.com/yozorajs/yozora/commit/0d6aa91fb5a15b962b016496453dbfa7f1197126))
292
+ * 📝 update READMEs ([738d626](https://github.com/yozorajs/yozora/commit/738d626d76c535ea017812f674b43842ee073227))
293
+
294
+
295
+
296
+ # 1.1.0-alpha.0 (2021-07-31)
297
+
298
+
299
+ ### Performance Improvements
300
+
301
+ * 🔖 publish v1.1.0-alpha.0 ([082653e](https://github.com/yozorajs/yozora/commit/082653e421889513588492774503d8ddcc24b8f9))
302
+ * 📝 update READMEs ([9905f04](https://github.com/yozorajs/yozora/commit/9905f0408b15d4478d021ef5c75497817f2db9a3))
303
+ * 📝 update READMEs ([03fe64c](https://github.com/yozorajs/yozora/commit/03fe64c6a9eab9bf810d4648261e7a808a13d1e1))
304
+
305
+
306
+
307
+ # 1.0.0 (2021-07-20)
308
+
309
+
310
+ ### Performance Improvements
311
+
312
+ * 🔖 publish v1.0.0 ([ad754e3](https://github.com/yozorajs/yozora/commit/ad754e3a5945cd2ce19d9e6bfa59cb82caf0c7ac))
313
+
314
+
315
+
316
+ # 1.0.0-beta.0 (2021-07-08)
317
+
318
+
319
+ ### Performance Improvements
320
+
321
+ * 🔖 publish v1.0.0-beta.0 ([bb66320](https://github.com/yozorajs/yozora/commit/bb6632098367cd8cf391eb1380d4542c15383bac))
322
+
323
+
324
+
325
+ # 1.0.0-1.0.0-beta.0.0 (2021-07-08)
326
+
327
+
328
+ ### Performance Improvements
329
+
330
+ * 🔖 publish v1.0.0-1.0.0-beta.0.0 ([4051dd2](https://github.com/yozorajs/yozora/commit/4051dd2bcdea0d051141abaa85635e52d84c04f2))
331
+ * 📝 update READMEs ([9d9f940](https://github.com/yozorajs/yozora/commit/9d9f940a81188502db6045134054b18b747819bf))
332
+
333
+
334
+
335
+ # 1.0.0-alpha.29 (2021-07-08)
336
+
337
+
338
+ ### Performance Improvements
339
+
340
+ * expose new utility func 'createTester' and 'createTesters' ([a4e9613](https://github.com/yozorajs/yozora/commit/a4e9613063e3e5840cf066e6e7343dbd5ffd4884))
341
+ * 📝 fix invalid link references ([f7b97b3](https://github.com/yozorajs/yozora/commit/f7b97b3dc74f065aa8f00ecd846ee4fa7f704453))
342
+ * 🔖 publish v1.0.0-alpha.29 ([f2291db](https://github.com/yozorajs/yozora/commit/f2291db2812043dd6586eaabd14e427abb11663a))
343
+ * 🎨 use path alias in tests ([29cca94](https://github.com/yozorajs/yozora/commit/29cca943d4fbc6d26af4507d3fa75ac08dcf388a))
344
+
345
+
346
+
347
+ # 1.0.0-alpha.28 (2021-06-30)
348
+
349
+
350
+ ### Performance Improvements
351
+
352
+ * 🔖 publish v1.0.0-alpha.28 ([f18d90a](https://github.com/yozorajs/yozora/commit/f18d90a116db508bf49c9a3338a262cb85faf792))
353
+ * 🎨 rename variable names (use termnal 'internal' instead of 'inner') ([b374c26](https://github.com/yozorajs/yozora/commit/b374c2677a3b7cd0b13429c517e1f213419f2932))
354
+
355
+
356
+
357
+ # 1.0.0-alpha.27 (2021-06-28)
358
+
359
+
360
+ ### Performance Improvements
361
+
362
+ * 🎨 update base abstract tokenizer ([cca9dd6](https://github.com/yozorajs/yozora/commit/cca9dd6fc3d4a22e1352378f59c7d2dccecfc5a2))
363
+ * 🔖 publish v1.0.0-alpha.27 ([8efea07](https://github.com/yozorajs/yozora/commit/8efea07b2314c241c91fc113abdc8852f216c9d7))
364
+ * ⬆️ upgrade dev dependencies ([d126ff4](https://github.com/yozorajs/yozora/commit/d126ff4c81ec09b366a0c60ba2a83e7f45fbe317))
365
+
366
+
367
+
368
+ # 1.0.0-alpha.26 (2021-06-25)
369
+
370
+
371
+ ### Performance Improvements
372
+
373
+ * 🔖 publish v1.0.0-alpha.26 ([cbde29c](https://github.com/yozorajs/yozora/commit/cbde29c6188c9183f0b39ccfac0ad310803b09fe))
374
+ * 📝 update README ([37fa535](https://github.com/yozorajs/yozora/commit/37fa53559b52ab1cef6bee37ab6e94c8bdeebef4))
375
+ * 📝 update READMEs ([11e4f61](https://github.com/yozorajs/yozora/commit/11e4f6107c3862bf8c81dae882e93cab3f56f40f))
376
+
377
+
378
+
379
+ # 1.0.0-alpha.25 (2021-06-17)
380
+
381
+
382
+ ### Bug Fixes
383
+
384
+ * 🐛 autolink has the same priority as inline-code but autolink-extension not ([cfeb5d2](https://github.com/yozorajs/yozora/commit/cfeb5d24596176a9b361ded3353d080c4b90ca87))
385
+ * 🐛 there are no non-text token consistutes children of autolink or autolink-extension ([7125cbc](https://github.com/yozorajs/yozora/commit/7125cbc8136d305d4b4db933dfcf50b4bd2a645c))
386
+
387
+
388
+ ### Performance Improvements
389
+
390
+ * 🔖 publish v1.0.0-alpha.25 ([5e17f71](https://github.com/yozorajs/yozora/commit/5e17f7155391c21eb1c99e5024e48d5e208e80db))
391
+ * ⚰️ remove delimiterGroup as we are no longer need it ([e9de208](https://github.com/yozorajs/yozora/commit/e9de208eca035d874e1909869ab52a0a5201dd2f))
392
+ * 🎨 rewrite due to the algorithm changed ([7216611](https://github.com/yozorajs/yozora/commit/7216611d79f9f10faaf913500341b796a58c6b1b))
393
+
394
+
395
+
396
+ # 1.0.0-alpha.24 (2021-06-10)
397
+
398
+
399
+ ### Performance Improvements
400
+
401
+ * 🔖 publish v1.0.0-alpha.24 ([6169f8e](https://github.com/yozorajs/yozora/commit/6169f8ecda42e04203e4533f820e82ea3e93b7dd))
402
+
403
+
404
+
405
+ # 1.0.0-alpha.23 (2021-06-08)
406
+
407
+
408
+ ### Performance Improvements
409
+
410
+ * Move repository from github.com/guanghechen to github.com/yozorajs ([c1fd32c](https://github.com/yozorajs/yozora/commit/c1fd32ce818b44aa0d993ec8f74ef514bdf2d834))
411
+ * 🔖 publish v1.0.0-alpha.23 ([131a216](https://github.com/yozorajs/yozora/commit/131a2162b64eb23f98e93286974f4a3e4a91b77a))
412
+ * 📝 update READMEs ([6420941](https://github.com/yozorajs/yozora/commit/64209414cacdaf0e04329e2c86e6ff41f885f55f))
413
+
414
+
415
+
416
+ # 1.0.0-alpha.22 (2021-05-20)
417
+
418
+
419
+ ### Performance Improvements
420
+
421
+ * 🎨 lint codes ([0d2d798](https://github.com/yozorajs/yozora/commit/0d2d7988d1d46f873e2a9f5d37de9c5daa39a109))
422
+ * 🔖 publish v1.0.0-alpha.22 ([a07a41d](https://github.com/yozorajs/yozora/commit/a07a41de8dda2ff579b0e5b469db75d6c629c38b))
423
+ * 🔧 rename the main branch to 'main' instead of 'master' ([c915653](https://github.com/yozorajs/yozora/commit/c9156537fba68ce073e139eb487afb973b7d90ba))
424
+
425
+
426
+
427
+ # 1.0.0-alpha.21 (2021-05-12)
428
+
429
+
430
+ ### Performance Improvements
431
+
432
+ * 🔖 publish v1.0.0-alpha.21 ([e6655a2](https://github.com/yozorajs/yozora/commit/e6655a252c0b799d0990f06bc7cfdadc6824b63c))
433
+
434
+
435
+
436
+ # 1.0.0-alpha.20 (2021-04-20)
437
+
438
+
439
+ ### Performance Improvements
440
+
441
+ * 🔖 publish v1.0.0-alpha.20 ([3f3831f](https://github.com/yozorajs/yozora/commit/3f3831fb6fdb72319e7d24a1ba4b51b44bdb4c8d))
442
+
443
+
444
+
445
+ # 1.0.0-alpha.19 (2021-04-19)
446
+
447
+
448
+ ### Performance Improvements
449
+
450
+ * 🔖 publish v1.0.0-alpha.19 ([50b55f9](https://github.com/yozorajs/yozora/commit/50b55f9e5fd1d00c03d271a488d2a648ccd0a1d1))
451
+ * 📝 update READMEs ([907af97](https://github.com/yozorajs/yozora/commit/907af97f8c0bca5b045ccae188c6b759e88ec38c))
452
+
453
+
454
+
455
+ # 1.0.0-alpha.18 (2021-04-18)
456
+
457
+
458
+ ### Performance Improvements
459
+
460
+ * 🔖 publish v1.0.0-alpha.18 ([219b28b](https://github.com/yozorajs/yozora/commit/219b28b38975d6d41f6c285a512a5c0dccceb6fa))
461
+
462
+
463
+
464
+ # 1.0.0-alpha.17 (2021-04-15)
465
+
466
+
467
+ ### Performance Improvements
468
+
469
+ * 🔖 publish v1.0.0-alpha.17 ([0e7facd](https://github.com/yozorajs/yozora/commit/0e7facdde8692e538e5777d70b873cf6282f7de8))
470
+ * 📝 update docs ([acffd75](https://github.com/yozorajs/yozora/commit/acffd757123705c4d0f6a3948f62f3c460cefde3))
471
+
472
+
473
+
474
+ # 1.0.0-alpha.16 (2021-04-12)
475
+
476
+
477
+ ### Performance Improvements
478
+
479
+ * 🔖 publish v1.0.0-alpha.16 ([9da34dd](https://github.com/yozorajs/yozora/commit/9da34dd46333b72f908c77d15f11326f3724060c))
480
+ * ✅ simplify test codes ([60d072c](https://github.com/yozorajs/yozora/commit/60d072c6bf4a414e45b3d98713223a23be5d0bb8))
481
+
482
+
483
+
484
+ # 1.0.0-alpha.15 (2021-04-11)
485
+
486
+
487
+ ### Performance Improvements
488
+
489
+ * 🔖 publish v1.0.0-alpha.15 ([988d25f](https://github.com/yozorajs/yozora/commit/988d25f7958825ccbaaa99051ad7b823c625d4cf))
490
+
491
+
492
+
493
+ # 1.0.0-alpha.14 (2021-04-11)
494
+
495
+
496
+ ### Performance Improvements
497
+
498
+ * 🔖 publish v1.0.0-alpha.14 ([3fcfffa](https://github.com/yozorajs/yozora/commit/3fcfffa0da0413449acf0d91d85400d0b31fa9a2))
499
+ * 🎨 rename isContainerBlock to isContainingBlock & use enum TokenizerPriority instead of magic numbers to present tokenizer proirity ([940c50b](https://github.com/yozorajs/yozora/commit/940c50bb58b76a888a512539f3a4db6e8396d45b))
500
+ * 📝 update READMEs ([8c0ff37](https://github.com/yozorajs/yozora/commit/8c0ff379692517bb9aa9f3712c99875eaef55ec2))
501
+ * ✅ update tests ([3c9f64f](https://github.com/yozorajs/yozora/commit/3c9f64f331d2b2c3484cc580dc8ef13e21ee42b8))
502
+ * ✅ update tests ([a24d148](https://github.com/yozorajs/yozora/commit/a24d1485b59caaeff4510b1150d8810236a9906a))
503
+
504
+
505
+
506
+ # 1.0.0-alpha.13 (2021-04-10)
507
+
508
+
509
+ ### Performance Improvements
510
+
511
+ * 🎨 add api for match-inline and parse-inline phase ([150231a](https://github.com/yozorajs/yozora/commit/150231af44b14db614c0823c05e94ba58e096cb3))
512
+ * 🔖 publish v1.0.0-alpha.13 ([949455c](https://github.com/yozorajs/yozora/commit/949455c25f4fb60a88c3484829a610da7c998969))
513
+
514
+
515
+
516
+ # 1.0.0-alpha.12 (2021-03-27)
517
+
518
+
519
+ ### Features
520
+
521
+ * 💥 redesign interfaces & refactor tokenizer codes with types from @yozora/ast ([af3603d](https://github.com/yozorajs/yozora/commit/af3603d771bde94ec0c78fb53aa6d64a14933f9d))
522
+
523
+
524
+ ### Performance Improvements
525
+
526
+ * 🎨 add static uniqueName into tokenizers ([f6e2c77](https://github.com/yozorajs/yozora/commit/f6e2c77b864c2ef05af0084025d999b4419d8095))
527
+ * 🎨 make '_tokenizer' optional in the result of tokenizers on match phase ([b1ea8de](https://github.com/yozorajs/yozora/commit/b1ea8de5a439615d09e9cc3585b1a3cbdb663d31))
528
+ * 🔖 publish v1.0.0-alpha.12 ([897f131](https://github.com/yozorajs/yozora/commit/897f1317408ab43406788d5b796d245fd4eeac13))
529
+ * 🎨 use AST types from @yozora/ast instead of @yozora/core-tokenizer ([fc55ceb](https://github.com/yozorajs/yozora/commit/fc55cebca8162a111fca1c0cdfbf0982831db66a))
530
+ * 🎨 use types defined in @yozora/ast & use tokenizerName as unique id of token ([d51f022](https://github.com/yozorajs/yozora/commit/d51f0222a829ef0caea5f1ec058ca3f3553c156d))
531
+
532
+
533
+
534
+ # 1.0.0-alpha.11 (2021-03-20)
535
+
536
+
537
+ ### Performance Improvements
538
+
539
+ * 🔖 publish v1.0.0-alpha.11 ([df10f73](https://github.com/yozorajs/yozora/commit/df10f73cbcc698d44cd7f7efbab2f7cac66f8675))
540
+
541
+
542
+
543
+ # 1.0.0-alpha.10 (2021-03-20)
544
+
545
+
546
+ ### Performance Improvements
547
+
548
+ * 🔖 publish v1.0.0-alpha.10 ([dbd0114](https://github.com/yozorajs/yozora/commit/dbd0114cd72fa029e743db5d38e10bc1af23ca33))
549
+
550
+
551
+
552
+ # 1.0.0-alpha.9 (2021-03-20)
553
+
554
+
555
+ ### Features
556
+
557
+ * 💥 update types of Definition to make it consistent with the Definition in Mdast ([1309771](https://github.com/yozorajs/yozora/commit/1309771175f24c39525f83cc5a0d08f6960ff7c1))
558
+
559
+
560
+ ### Performance Improvements
561
+
562
+ * 📝 fix invalid badge urls ([4d78b23](https://github.com/yozorajs/yozora/commit/4d78b23b2aa8ae65adb9e86ccd51e372a916f20b))
563
+ * 🔖 publish v1.0.0-alpha.9 ([1b41b56](https://github.com/yozorajs/yozora/commit/1b41b56362c328af28fde43a0b95fa02aff0dfbe))
564
+
565
+
566
+
567
+ # 1.0.0-alpha.8 (2021-03-13)
568
+
569
+
570
+ ### Performance Improvements
571
+
572
+ * 🔖 publish v1.0.0-alpha.8 ([3cb3080](https://github.com/yozorajs/yozora/commit/3cb3080312048001d73911a892c4a7c69459c260))
573
+ * 📝 update badges ([418e221](https://github.com/yozorajs/yozora/commit/418e2216ed80c71445f9e0efd9ea054208b18c78))
574
+ * 🔧 update configs & lint codes ([3e9ded3](https://github.com/yozorajs/yozora/commit/3e9ded3f7ebe8dcb68a976675ffd34bdfd59ace9))
575
+ * 🔧 update package.json ([cba99c5](https://github.com/yozorajs/yozora/commit/cba99c5aa58de54672cc292e587914f56d702f7a))
576
+ * 📝 update READMEs ([188b30b](https://github.com/yozorajs/yozora/commit/188b30ba3f10096722e999452f84752ec3dd459a))
577
+
578
+
579
+
580
+ # 1.0.0-alpha.7 (2021-03-06)
581
+
582
+
583
+ ### Performance Improvements
584
+
585
+ * 🎨 format codes ([1fbd596](https://github.com/yozorajs/yozora/commit/1fbd59671965b747a990d2bff77de0872f18836d))
586
+ * 🔧 add directory in repository field ([8daefc9](https://github.com/yozorajs/yozora/commit/8daefc94f4999aa471e2edc82728120ae9c0f079))
587
+ * 📝 update badges ([967819b](https://github.com/yozorajs/yozora/commit/967819be94f17a635169fabd48468747e53f2b84))
588
+ * 🔖 publish v1.0.0-alpha.7 ([115ce36](https://github.com/yozorajs/yozora/commit/115ce36207dc675c7a13275c6bf2fccafdb47ffc))
589
+ * 🔧 update scripts field ([72841c5](https://github.com/yozorajs/yozora/commit/72841c571882cb600706aaab1a335fa68013167c))
590
+ * 🔧 use @guanghechen/rollup-config instead of @barusu/rollup-config ([6228c33](https://github.com/yozorajs/yozora/commit/6228c330ed6dc3113c671f56feaa91d47bff6d64))
591
+ * 🔨 use top level rollup.config.js ([818c59b](https://github.com/yozorajs/yozora/commit/818c59b6f5ef3c29f718428c620ebce08f24b9d6))
592
+
593
+
594
+
595
+ # 1.0.0-alpha.6 (2021-02-25)
596
+
597
+
598
+ ### Performance Improvements
599
+
600
+ * 🎨 format codes through 'yarn sort-imports' ([a932fec](https://github.com/yozorajs/yozora/commit/a932fec827b51397f2c5378afff11d4efd09159e))
601
+ * 🎨 format codes with prettier ([04582c8](https://github.com/yozorajs/yozora/commit/04582c840608a6d36270066a1e5d552840855118))
602
+ * 🔖 publish v1.0.0-alpha.6 ([e4f20f7](https://github.com/yozorajs/yozora/commit/e4f20f785dc3928c0c928d0d38665bf3609481a6))
603
+ * 🚚 rename @yozora/parser-core to @yozora/core-parser ([e94956f](https://github.com/yozorajs/yozora/commit/e94956f58ccf64f37c476c953679578b3b4b7c24))
604
+ * ⬆️ upgrade @barusu/* to v0.0.47 & upgrade rollup to v2.39.1 ([173b431](https://github.com/yozorajs/yozora/commit/173b431d4522a90b964b11d015ce24eba4028deb))
605
+ * 🔧 upgrade barusu to v0.0.46 ([7c360a4](https://github.com/yozorajs/yozora/commit/7c360a46a6c188e13512ac814a8f59169f41f23d))
606
+ * 🔧 upgrade eslint & update eslint configs & lint codes ([4227453](https://github.com/yozorajs/yozora/commit/4227453ce46a4c9e9e1eeac2939c6365af78c696))
607
+
608
+
609
+
610
+ # 1.0.0-alpha.5 (2021-02-23)
611
+
612
+
613
+ ### Performance Improvements
614
+
615
+ * 🔖 publish v1.0.0-alpha.5 ([fa285da](https://github.com/yozorajs/yozora/commit/fa285da950e21abf2505f51256bb12e3b8307823))
616
+
617
+
618
+
619
+ # 1.0.0-alpha.4 (2021-02-23)
620
+
621
+
622
+ ### Performance Improvements
623
+
624
+ * :construction: [template-tokenizer] feat: update boilerplates ([897cbfa](https://github.com/yozorajs/yozora/commit/897cbfa9a149343d7bf58544b8cbd636008da464))
625
+ * :art: merge @yozora/tokenizercore-inline and @yozora/tokenizercore-block into @yozora/tokenizercore ([7583266](https://github.com/yozorajs/yozora/commit/7583266e831d441b0c5004b7ef05cf7008c8f8da))
626
+ * 🎨 move property `recongnizedTypes` from TokenizerParseBlockHook and TokenizerParseInlineHook into the Tokenizer ([d3ec789](https://github.com/yozorajs/yozora/commit/d3ec78944df57a2e8515019bf80eb9c6e508a2ac))
627
+ * 🔖 publish v1.0.0-alpha.4 ([1cfd290](https://github.com/yozorajs/yozora/commit/1cfd29055684e41eb0859d81210a2b542424ffab))
628
+ * 🎨 rename tokenizer hooks ([9f0679f](https://github.com/yozorajs/yozora/commit/9f0679f829efd685b179cf6717cc85a10c004c52))
629
+ * 🔧 update jest config ([2142751](https://github.com/yozorajs/yozora/commit/2142751fee35f8bce093e3b884902e53fa56f072))
630
+ * 📝 update README ([57663fd](https://github.com/yozorajs/yozora/commit/57663fdd46cb57de41feddb461caafed9e54bc07))
631
+ * 📝 update READMEs ([c421f5c](https://github.com/yozorajs/yozora/commit/c421f5c5e21bfd176a5b8b2b7716c4c8326fffcf))
632
+
633
+
634
+
635
+ # 1.0.0-alpha.3 (2021-02-18)
636
+
637
+
638
+ ### Performance Improvements
639
+
640
+ * 🎨 format codes ([a94d2b5](https://github.com/yozorajs/yozora/commit/a94d2b5fa632b6b87d646b7bac3ee8f2bff661ba))
641
+ * 🔖 publish v1.0.0-alpha.3 ([ba9b6dd](https://github.com/yozorajs/yozora/commit/ba9b6dd2d3bb70a22be8e4bdc1b1c5a8d07bdbe0))
642
+
643
+
644
+
645
+ # 1.0.0-alpha.2 (2021-02-15)
646
+
647
+
648
+ ### Performance Improvements
649
+
650
+ * 🔖 publish v1.0.0-alpha.2 ([d1ed70b](https://github.com/yozorajs/yozora/commit/d1ed70bc4f3728049ba285c70a1cd15d6c095597))
651
+
652
+
653
+
654
+ # 1.0.0-alpha.1 (2021-02-15)
655
+
656
+
657
+ ### Performance Improvements
658
+
659
+ * 🎨 format codes ([27c0483](https://github.com/yozorajs/yozora/commit/27c0483131f86e77409f5fc385d642c50e7db37a))
660
+ * 🔖 publish v1.0.0-alpha.1 ([def33f1](https://github.com/yozorajs/yozora/commit/def33f19b215c17686a2a270f95329aac3d9d2ce))
661
+ * 📝 update homepage url ([8833f53](https://github.com/yozorajs/yozora/commit/8833f53122bc845f8a359e0192e9443e35fc2808))
662
+
663
+
664
+
665
+ # 1.0.0-alpha.0 (2021-02-14)
666
+
667
+
668
+ ### Bug Fixes
669
+
670
+ * 🐛 links and images are more tightly than emphasis ([2257764](https://github.com/yozorajs/yozora/commit/22577644c83edb8face39a4ed3f4a4f2f19fe61c))
671
+
672
+
673
+ ### Features
674
+
675
+ * 🚧 handle tabs & update tests ([27d198b](https://github.com/yozorajs/yozora/commit/27d198b092be46e7822239d987c707829e432333))
676
+ * 🚧 implement @yozora/tokenizer-autolink ([02c4abd](https://github.com/yozorajs/yozora/commit/02c4abdb8cdb16cf88c2ba19bc959992d50a73c0))
677
+ * ✨ implements @yozora/tokenizer-autolink-extension to support GFM Autolinks(extension) ([56d5793](https://github.com/yozorajs/yozora/commit/56d5793272db714a10d1a84320626d3d68480fd0))
678
+
679
+
680
+ ### Performance Improvements
681
+
682
+ * :art: [tokenizercore-inline] improve: update types ([6ed6796](https://github.com/yozorajs/yozora/commit/6ed67964e41366ecfa74eed434fdff9b9297dff0))
683
+ * :construction: [autolink] feat: support email address ([b21ec3b](https://github.com/yozorajs/yozora/commit/b21ec3b174f7315b8f2ee126fd7e55c68eac2ad5))
684
+ * 🎨 update @yozora/tokenizercore-inline with new algorithm & update @yozora/tokenizer-emphasis ([7e33d28](https://github.com/yozorajs/yozora/commit/7e33d2816ce349bba156c644fb9802d7b6474deb))
685
+ * ✅ add ast positions ([a4a55bb](https://github.com/yozorajs/yozora/commit/a4a55bb9297fb587b80c206508ee57f1c0ff7569))
686
+ * 🎨 update character enums & rename utility funcs ([aef44cc](https://github.com/yozorajs/yozora/commit/aef44cce880b5bbefbaee574229e182af8891246))
687
+ * 🚧 dealing with nested links. GFM[#540](https://github.com/yozorajs/yozora/issues/540) ([408a754](https://github.com/yozorajs/yozora/commit/408a7549d74f59831b9a04d8aa5eb16cbad81470))
688
+ * 🎨 encode link destination with encodeURI ([9a919f7](https://github.com/yozorajs/yozora/commit/9a919f7e9ab369536fb57d2886d969e510a13e4f))
689
+ * 🎨 format codes & add comments ([ba7ce7f](https://github.com/yozorajs/yozora/commit/ba7ce7f5af95ebac78bcf988e85aad9f520e1e98))
690
+ * 🎨 add new hook 'isDelimiterPair' to check if the given two delimiters can be combined into a pair ([55148d2](https://github.com/yozorajs/yozora/commit/55148d2f9ae3d8843857b96e83affe03536e28c7))
691
+ * 🚧 update due to the change of @yozora/tokenizercore-inline ([4676e3e](https://github.com/yozorajs/yozora/commit/4676e3e2b9930312ec7ea60e92af496729e33688))
692
+ * 🔖 publish v1.0.0-alpha.0 ([d7a394a](https://github.com/yozorajs/yozora/commit/d7a394affbdebe154b2eda5430f4440661f1c711))
693
+ * 🎨 remove useless types ([d430236](https://github.com/yozorajs/yozora/commit/d43023647638071fb184c2844e1dd6ea379ec877))
694
+ * 🎨 remove YastBlockNodeType and YastInlineNodeType, use YastNodeType instead ([2142b3d](https://github.com/yozorajs/yozora/commit/2142b3d9b9b8247202d78fca9571485cb1c13110))
695
+ * 🎨 rename EnhancedYastNodePoint to NodePoint & rename *WhiteSpace* to *Whitespace* ([988a99f](https://github.com/yozorajs/yozora/commit/988a99fcf448012fd07df0eacff72d7b5a0166fe))
696
+ * 🎨 rename YastNodeInterval to NodeInterval & move this type from @yozora/tokenizercore to @yozora/character ([86f9984](https://github.com/yozorajs/yozora/commit/86f99848088e55612e0de6a81b58977071ee966a))
697
+ * 🎨 rewrite @yozora/jest-for-tokenizer & update tests ([2b68af6](https://github.com/yozorajs/yozora/commit/2b68af63e0ea2c267b2c8c7581998cfba8197bd4))
698
+ * 🎨 rewrite string preprocessing algorithm to support tabs and line ends ([1312f88](https://github.com/yozorajs/yozora/commit/1312f88e3ae5940d8fd4c616a1fec23284b89287))
699
+ * 📝 update READMEs ([9657e0c](https://github.com/yozorajs/yozora/commit/9657e0c41b37e526ad469f4e45d5d080a92171fb))
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/release-2.x.x/tokenizers/autolink#readme">@yozora/tokenizer-autolink</a>
5
+ <a href="https://github.com/yozorajs/yozora/tree/v2.1.5/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">
@@ -200,53 +200,53 @@ Name | Type | Required | Default
200
200
 
201
201
  [live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-autolink#live-examples
202
202
  [docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-autolink
203
- [homepage]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink#readme
203
+ [homepage]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/autolink#readme
204
204
  [gfm-spec]: https://github.github.com/gfm
205
205
  [mdast-homepage]: https://github.com/syntax-tree/mdast
206
206
 
207
- [@yozora/ast]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast#readme
208
- [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast-util#readme
209
- [@yozora/character]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/character#readme
207
+ [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/ast#readme
208
+ [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/ast-util#readme
209
+ [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/character#readme
210
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/release-2.x.x/packages/core-parser#readme
212
- [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/core-tokenizer#readme
213
- [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/invariant#readme
211
+ [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/core-parser#readme
212
+ [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/core-tokenizer#readme
213
+ [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/invariant#readme
214
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/release-2.x.x/packages/parser#readme
216
- [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm#readme
217
- [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm-ex#readme
215
+ [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser#readme
216
+ [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser-gfm#readme
217
+ [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser-gfm-ex#readme
218
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/release-2.x.x/tokenizers/admonition#readme
220
- [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink#readme
221
- [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink-extension#readme
222
- [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/blockquote#readme
223
- [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/break#readme
224
- [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/definition#readme
225
- [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/delete#readme
226
- [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/ecma-import#readme
227
- [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/emphasis#readme
228
- [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-block#readme
229
- [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-code#readme
230
- [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote#readme
231
- [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-definition#readme
232
- [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-reference#readme
233
- [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/heading#readme
234
- [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-block#readme
235
- [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline#readme
236
- [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image#readme
237
- [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image-reference#readme
238
- [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/indented-code#readme
239
- [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-code#readme
240
- [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-math#readme
241
- [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link#readme
242
- [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link-reference#readme
243
- [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/list#readme
244
- [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/math#readme
245
- [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/paragraph#readme
246
- [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/setext-heading#readme
247
- [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/table#readme
248
- [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/text#readme
249
- [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/thematic-break#readme
219
+ [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/admonition#readme
220
+ [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/autolink#readme
221
+ [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/autolink-extension#readme
222
+ [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/blockquote#readme
223
+ [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/break#readme
224
+ [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/definition#readme
225
+ [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/delete#readme
226
+ [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/ecma-import#readme
227
+ [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/emphasis#readme
228
+ [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/fenced-block#readme
229
+ [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/fenced-code#readme
230
+ [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote#readme
231
+ [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-definition#readme
232
+ [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-reference#readme
233
+ [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/heading#readme
234
+ [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/html-block#readme
235
+ [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/html-inline#readme
236
+ [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/image#readme
237
+ [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/image-reference#readme
238
+ [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/indented-code#readme
239
+ [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/inline-code#readme
240
+ [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/inline-math#readme
241
+ [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/link#readme
242
+ [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/link-reference#readme
243
+ [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/list#readme
244
+ [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/math#readme
245
+ [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/paragraph#readme
246
+ [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/setext-heading#readme
247
+ [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/table#readme
248
+ [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/text#readme
249
+ [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/thematic-break#readme
250
250
 
251
251
  [@yozora/react-admonition]: https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
252
252
  [@yozora/react-blockquote]: https://github.com/yozorajs/yozora-react/tree/main/packages/blockquote#readme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-autolink",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "author": {
5
5
  "name": "guanghechen",
6
6
  "url": "https://github.com/guanghechen/"
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "files": [
29
29
  "lib/",
30
- "src/",
30
+ "!lib/**/*.map",
31
31
  "package.json",
32
32
  "CHANGELOG.md",
33
33
  "LICENSE",
@@ -39,9 +39,9 @@
39
39
  "test": "cross-env TS_NODE_FILES=true NODE_OPTIONS=--experimental-vm-modules jest --config ../../jest.config.mjs --rootDir ."
40
40
  },
41
41
  "dependencies": {
42
- "@yozora/ast": "^2.1.3",
43
- "@yozora/character": "^2.1.3",
44
- "@yozora/core-tokenizer": "^2.1.3"
42
+ "@yozora/ast": "^2.1.5",
43
+ "@yozora/character": "^2.1.5",
44
+ "@yozora/core-tokenizer": "^2.1.5"
45
45
  },
46
- "gitHead": "9abaaff74a12d0bae0f645813241ff947a0d828c"
46
+ "gitHead": "4f753bcf0fd921938464802462dc48c53bbd014d"
47
47
  }
package/src/index.ts DELETED
@@ -1,12 +0,0 @@
1
- export * from './util/email'
2
- export * from './util/uri'
3
- export { match as autolinkMatch } from './match'
4
- export { parse as autolinkParse } from './parse'
5
- export { AutolinkTokenizer, AutolinkTokenizer as default } from './tokenizer'
6
- export { uniqueName as AutolinkTokenizerName } from './types'
7
- export type {
8
- IThis as IAutolinkHookContext,
9
- IToken as IAutolinkToken,
10
- ITokenizerProps as IAutolinkTokenizerProps,
11
- AutolinkContentType,
12
- } from './types'
package/src/match.ts DELETED
@@ -1,79 +0,0 @@
1
- import { LinkType } from '@yozora/ast'
2
- import type { INodePoint } from '@yozora/character'
3
- import { AsciiCodePoint } from '@yozora/character'
4
- import type {
5
- IMatchInlineHookCreator,
6
- IResultOfProcessSingleDelimiter,
7
- } from '@yozora/core-tokenizer'
8
- import { genFindDelimiter } from '@yozora/core-tokenizer'
9
- import type { AutolinkContentType, IContentHelper, IDelimiter, IThis, IToken, T } from './types'
10
- import { eatEmailAddress } from './util/email'
11
- import { eatAbsoluteUri } from './util/uri'
12
-
13
- const helpers: ReadonlyArray<IContentHelper> = [
14
- { contentType: 'uri', eat: eatAbsoluteUri },
15
- { contentType: 'email', eat: eatEmailAddress },
16
- ]
17
-
18
- /**
19
- * Autolinks are absolute URIs and email addresses inside '<' and '>'.
20
- * They are parsed as links, with the URL or email address as the link label.
21
- *
22
- * @see https://github.github.com/gfm/#autolink
23
- */
24
- export const match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis> = function (api) {
25
- return {
26
- findDelimiter: () => genFindDelimiter<IDelimiter>(_findDelimiter),
27
- processSingleDelimiter,
28
- }
29
-
30
- function _findDelimiter(startIndex: number, endIndex: number): IDelimiter | null {
31
- const nodePoints: ReadonlyArray<INodePoint> = api.getNodePoints()
32
-
33
- for (let i = startIndex; i < endIndex; ++i) {
34
- if (nodePoints[i].codePoint !== AsciiCodePoint.OPEN_ANGLE) continue
35
-
36
- let nextIndex: number = endIndex
37
- let contentType: AutolinkContentType | null = null
38
- for (const helper of helpers) {
39
- const eatResult = helper.eat(nodePoints, i + 1, endIndex)
40
- nextIndex = Math.min(nextIndex, eatResult.nextIndex)
41
- if (eatResult.valid) {
42
- contentType = helper.contentType
43
- nextIndex = eatResult.nextIndex
44
- break
45
- }
46
- }
47
-
48
- // Optimization: move forward to the next latest potential position.
49
- if (contentType == null) {
50
- i = Math.max(i, nextIndex - 1)
51
- continue
52
- }
53
-
54
- if (nextIndex < endIndex && nodePoints[nextIndex].codePoint === AsciiCodePoint.CLOSE_ANGLE) {
55
- return {
56
- type: 'full',
57
- startIndex: i,
58
- endIndex: nextIndex + 1,
59
- contentType,
60
- }
61
- }
62
- i = nextIndex - 1
63
- }
64
- return null
65
- }
66
-
67
- function processSingleDelimiter(
68
- delimiter: IDelimiter,
69
- ): IResultOfProcessSingleDelimiter<T, IToken> {
70
- const token: IToken = {
71
- nodeType: LinkType,
72
- startIndex: delimiter.startIndex,
73
- endIndex: delimiter.endIndex,
74
- contentType: delimiter.contentType,
75
- children: api.resolveFallbackTokens([], delimiter.startIndex + 1, delimiter.endIndex - 1),
76
- }
77
- return [token]
78
- }
79
- }
package/src/parse.ts DELETED
@@ -1,31 +0,0 @@
1
- import type { Node } from '@yozora/ast'
2
- import { LinkType } from '@yozora/ast'
3
- import type { INodePoint } from '@yozora/character'
4
- import { calcStringFromNodePoints } from '@yozora/character'
5
- import type { IParseInlineHookCreator } from '@yozora/core-tokenizer'
6
- import { encodeLinkDestination } from '@yozora/core-tokenizer'
7
- import type { INode, IThis, IToken, T } from './types'
8
-
9
- export const parse: IParseInlineHookCreator<T, IToken, INode, IThis> = function (api) {
10
- return {
11
- parse: tokens =>
12
- tokens.map(token => {
13
- const nodePoints: ReadonlyArray<INodePoint> = api.getNodePoints()
14
-
15
- // Backslash-escapes do not work inside autolink.
16
- let url = calcStringFromNodePoints(nodePoints, token.startIndex + 1, token.endIndex - 1)
17
-
18
- // Add 'mailto:' prefix to email address type autolink.
19
- if (token.contentType === 'email') {
20
- url = 'mailto:' + url
21
- }
22
-
23
- const encodedUrl = encodeLinkDestination(url)
24
- const children: Node[] = api.parseInlineTokens(token.children)
25
- const node: INode = api.shouldReservePosition
26
- ? { type: LinkType, position: api.calcPosition(token), url: encodedUrl, children }
27
- : { type: LinkType, url: encodedUrl, children }
28
- return node
29
- }),
30
- }
31
- }
package/src/tokenizer.ts DELETED
@@ -1,36 +0,0 @@
1
- import type {
2
- IInlineTokenizer,
3
- IMatchInlineHookCreator,
4
- IParseInlineHookCreator,
5
- } from '@yozora/core-tokenizer'
6
- import { BaseInlineTokenizer, TokenizerPriority } from '@yozora/core-tokenizer'
7
- import { match } from './match'
8
- import { parse } from './parse'
9
- import type { IDelimiter, INode, IThis, IToken, ITokenizerProps, T } from './types'
10
- import { uniqueName } from './types'
11
-
12
- /**
13
- * Lexical Analyzer for Autolink.
14
- * @see https://github.github.com/gfm/#autolink
15
- */
16
- export class AutolinkTokenizer
17
- extends BaseInlineTokenizer<T, IDelimiter, IToken, INode, IThis>
18
- implements IInlineTokenizer<T, IDelimiter, IToken, INode, IThis>
19
- {
20
- /* istanbul ignore next */
21
- constructor(props: ITokenizerProps = {}) {
22
- super({
23
- name: props.name ?? uniqueName,
24
- /**
25
- * Autolink has the same priority as inline-code.
26
- * @see https://github.github.com/gfm/#example-355
27
- * @see https://github.github.com/gfm/#example-356
28
- */
29
- priority: props.priority ?? TokenizerPriority.ATOMIC,
30
- })
31
- }
32
-
33
- public override readonly match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis> = match
34
-
35
- public override readonly parse: IParseInlineHookCreator<T, IToken, INode, IThis> = parse
36
- }
package/src/types.ts DELETED
@@ -1,46 +0,0 @@
1
- import type { Link, LinkType } from '@yozora/ast'
2
- import type { INodePoint } from '@yozora/character'
3
- import type {
4
- IBaseInlineTokenizerProps,
5
- IPartialInlineToken,
6
- IResultOfRequiredEater,
7
- ITokenDelimiter,
8
- ITokenizer,
9
- } from '@yozora/core-tokenizer'
10
-
11
- // Content type of autolink
12
- export type AutolinkContentType = 'uri' | 'email'
13
-
14
- export type T = LinkType
15
- export type INode = Link
16
- export const uniqueName = '@yozora/tokenizer-autolink'
17
-
18
- export interface IToken extends IPartialInlineToken<T> {
19
- /**
20
- * Autolink content type: absolute uri or email.
21
- */
22
- contentType: AutolinkContentType
23
- }
24
-
25
- export interface IDelimiter extends ITokenDelimiter {
26
- type: 'full'
27
- /**
28
- * Autolink content type: absolute uri or email.
29
- */
30
- contentType: AutolinkContentType
31
- }
32
-
33
- export type IThis = ITokenizer
34
-
35
- export type ITokenizerProps = Partial<IBaseInlineTokenizerProps>
36
-
37
- export type ContentEater = (
38
- nodePoints: ReadonlyArray<INodePoint>,
39
- startIndex: number,
40
- endIndex: number,
41
- ) => IResultOfRequiredEater
42
-
43
- export interface IContentHelper {
44
- contentType: AutolinkContentType
45
- eat: ContentEater
46
- }
package/src/util/email.ts DELETED
@@ -1,99 +0,0 @@
1
- import type { INodePoint } from '@yozora/character'
2
- import {
3
- AsciiCodePoint,
4
- isAlphanumeric,
5
- isAsciiDigitCharacter,
6
- isAsciiLetter,
7
- } from '@yozora/character'
8
- import type { IResultOfOptionalEater, IResultOfRequiredEater } from '@yozora/core-tokenizer'
9
-
10
- /**
11
- * An email address, for these purposes, is anything that matches the
12
- * non-normative regex from the HTML5 spec:
13
- *
14
- * /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}
15
- * [a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
16
- *
17
- * @see https://github.github.com/gfm/#email-address
18
- */
19
- export function eatEmailAddress(
20
- nodePoints: ReadonlyArray<INodePoint>,
21
- startIndex: number,
22
- endIndex: number,
23
- ): IResultOfRequiredEater {
24
- let i = startIndex
25
-
26
- // Match /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/
27
- for (; i < endIndex; i += 1) {
28
- const c = nodePoints[i].codePoint
29
- if (isAsciiLetter(c) || isAsciiDigitCharacter(c)) continue
30
- if (
31
- c !== AsciiCodePoint.DOT &&
32
- c !== AsciiCodePoint.EXCLAMATION_MARK &&
33
- c !== AsciiCodePoint.NUMBER_SIGN &&
34
- c !== AsciiCodePoint.DOLLAR_SIGN &&
35
- c !== AsciiCodePoint.PERCENT_SIGN &&
36
- c !== AsciiCodePoint.AMPERSAND &&
37
- c !== AsciiCodePoint.SINGLE_QUOTE &&
38
- c !== AsciiCodePoint.ASTERISK &&
39
- c !== AsciiCodePoint.PLUS_SIGN &&
40
- c !== AsciiCodePoint.SLASH &&
41
- c !== AsciiCodePoint.EQUALS_SIGN &&
42
- c !== AsciiCodePoint.QUESTION_MARK &&
43
- c !== AsciiCodePoint.CARET &&
44
- c !== AsciiCodePoint.UNDERSCORE &&
45
- c !== AsciiCodePoint.BACKTICK &&
46
- c !== AsciiCodePoint.OPEN_BRACE &&
47
- c !== AsciiCodePoint.VERTICAL_SLASH &&
48
- c !== AsciiCodePoint.CLOSE_BRACE &&
49
- c !== AsciiCodePoint.TILDE &&
50
- c !== AsciiCodePoint.MINUS_SIGN
51
- )
52
- break
53
- }
54
-
55
- if (
56
- i === startIndex ||
57
- i + 1 >= endIndex ||
58
- nodePoints[i].codePoint !== AsciiCodePoint.AT_SIGN ||
59
- !isAlphanumeric(nodePoints[i + 1].codePoint)
60
- )
61
- return { valid: false, nextIndex: i + 1 }
62
-
63
- i = eatAddressPart0(nodePoints, i + 2, endIndex)
64
-
65
- // Match /(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/
66
- for (; i + 1 < endIndex; ) {
67
- let c = nodePoints[i].codePoint
68
- if (c !== AsciiCodePoint.DOT) break
69
-
70
- c = nodePoints[i + 1].codePoint
71
- if (!isAsciiLetter(c) && !isAsciiDigitCharacter(c)) break
72
- i = eatAddressPart0(nodePoints, i + 2, endIndex)
73
- }
74
-
75
- return { valid: true, nextIndex: i }
76
- }
77
-
78
- /**
79
- * Match regex /(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?/
80
- *
81
- */
82
- function eatAddressPart0(
83
- nodePoints: ReadonlyArray<INodePoint>,
84
- startIndex: number,
85
- endIndex: number,
86
- ): IResultOfOptionalEater {
87
- let i = startIndex,
88
- result = -1
89
-
90
- for (let _endIndex = Math.min(endIndex, i + 62); i < _endIndex; ++i) {
91
- const c = nodePoints[i].codePoint
92
- if (isAsciiLetter(c) || isAsciiDigitCharacter(c)) {
93
- result = i
94
- continue
95
- }
96
- if (c !== AsciiCodePoint.MINUS_SIGN) break
97
- }
98
- return result >= startIndex ? result + 1 : startIndex
99
- }
package/src/util/uri.ts DELETED
@@ -1,84 +0,0 @@
1
- import type { INodePoint } from '@yozora/character'
2
- import {
3
- AsciiCodePoint,
4
- isAlphanumeric,
5
- isAsciiCharacter,
6
- isAsciiControlCharacter,
7
- isAsciiLetter,
8
- isWhitespaceCharacter,
9
- } from '@yozora/character'
10
- import type { IResultOfRequiredEater } from '@yozora/core-tokenizer'
11
-
12
- /**
13
- * Try to find to autolink absolute uri strictly start from the give `startIndex`.
14
- *
15
- * An absolute URI, for these purposes, consists of a scheme followed by a
16
- * colon (:) followed by zero or more characters other than ASCII whitespace
17
- * and control characters, `<`, and `>`. If the URI includes these characters,
18
- * they must be percent-encoded (e.g. %20 for a space).
19
- *
20
- * @see https://github.github.com/gfm/#absolute-uri
21
- */
22
- export function eatAbsoluteUri(
23
- nodePoints: ReadonlyArray<INodePoint>,
24
- startIndex: number,
25
- endIndex: number,
26
- ): IResultOfRequiredEater {
27
- const schema = eatAutolinkSchema(nodePoints, startIndex, endIndex)
28
- let { nextIndex } = schema
29
-
30
- if (
31
- !schema.valid ||
32
- nextIndex >= endIndex ||
33
- nodePoints[nextIndex].codePoint !== AsciiCodePoint.COLON
34
- )
35
- return { valid: false, nextIndex }
36
-
37
- for (nextIndex += 1; nextIndex < endIndex; ++nextIndex) {
38
- const c = nodePoints[nextIndex].codePoint
39
- if (
40
- !isAsciiCharacter(c) ||
41
- isWhitespaceCharacter(c) ||
42
- isAsciiControlCharacter(c) ||
43
- c === AsciiCodePoint.OPEN_ANGLE ||
44
- c === AsciiCodePoint.CLOSE_ANGLE
45
- )
46
- break
47
- }
48
- return { valid: true, nextIndex }
49
- }
50
-
51
- /**
52
- * Try to find to autolink schema strictly start from the give `startIndex`.
53
- *
54
- * A scheme is any sequence of 2–32 characters beginning with an ASCII letter
55
- * and followed by any combination of ASCII letters, digits, or the symbols
56
- * plus (`+`), period (`.`), or hyphen (`-`).
57
- *
58
- * @see https://github.github.com/gfm/#scheme
59
- */
60
- export function eatAutolinkSchema(
61
- nodePoints: ReadonlyArray<INodePoint>,
62
- startIndex: number,
63
- endIndex: number,
64
- ): IResultOfRequiredEater {
65
- let i = startIndex
66
- const c = nodePoints[i].codePoint
67
- if (!isAsciiLetter(c)) return { valid: false, nextIndex: i + 1 }
68
-
69
- for (i += 1; i < endIndex; ++i) {
70
- const d = nodePoints[i].codePoint
71
- if (
72
- isAlphanumeric(d) ||
73
- d === AsciiCodePoint.PLUS_SIGN ||
74
- d === AsciiCodePoint.DOT ||
75
- d === AsciiCodePoint.MINUS_SIGN
76
- )
77
- continue
78
- break
79
- }
80
-
81
- const count = i - startIndex
82
- if (count < 2 || count > 32) return { valid: false, nextIndex: i + 1 }
83
- return { valid: true, nextIndex: i }
84
- }