@yozora/tokenizer-footnote-reference 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,467 @@
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
+
169
+
170
+
171
+ # 2.0.0-alpha.1 (2022-01-08)
172
+
173
+
174
+ ### Bug Fixes
175
+
176
+ * 🐛 fix incorrect export names ([b2d1fa7](https://github.com/yozorajs/yozora/commit/b2d1fa71d774bd78c87aa51435ba89593ebbeb24))
177
+
178
+
179
+ ### Performance Improvements
180
+
181
+ * 🎨 refactor inline tokenizers ([b3ff235](https://github.com/yozorajs/yozora/commit/b3ff235f31f18e6ae511aaa4f96919f4eb90fa5c))
182
+ * 🔖 publish v2.0.0-alpha.1 ([86202e1](https://github.com/yozorajs/yozora/commit/86202e1d2b03ccfc2ab030517d9d314f7aee7666))
183
+ * 🎨 rename IHookContext to IThis ([04d5470](https://github.com/yozorajs/yozora/commit/04d5470c9949c4acfe6239289d34a8b5c6191e71))
184
+ * 📝 update READMEs ([320afeb](https://github.com/yozorajs/yozora/commit/320afebd6c500cbbce5fd65c1cd184bbd2224f25))
185
+
186
+
187
+
188
+ # 2.0.0-alpha.0 (2022-01-03)
189
+
190
+
191
+ ### Features
192
+
193
+ * 💥 [breaking] rename types with 'I' prefix ([d37d862](https://github.com/yozorajs/yozora/commit/d37d862212831dbe75ac92a6dbdadf2fa81cce8c))
194
+
195
+
196
+ ### Performance Improvements
197
+
198
+ * 💥 refactor inline tokenizers ([85e2d65](https://github.com/yozorajs/yozora/commit/85e2d655baf1e4f2010cbf9d80ed3a4f2d390d5c))
199
+ * 🔖 publish v2.0.0-alpha.0 ([0171501](https://github.com/yozorajs/yozora/commit/0171501339c49ffd02ed16a63447fa20a47a29a7))
200
+ * 🎨 rename parser hooks ([ef6cbc5](https://github.com/yozorajs/yozora/commit/ef6cbc51323e6ef9d4cd78f1c7194ae1f7819245))
201
+ * 🎨 set print width to 100 ([657a621](https://github.com/yozorajs/yozora/commit/657a6211cad52d5f1b183e7bcd7ea227b2aa7724))
202
+
203
+
204
+
205
+ # 1.3.0 (2021-10-09)
206
+
207
+
208
+ ### Features
209
+
210
+ * 💥 move func parameter `nodePoints` to api.getNodePoints() ([6bbfd4e](https://github.com/yozorajs/yozora/commit/6bbfd4e9c57240eeca0acb01a0bbc83c0eafa978))
211
+ * 💥 move func parameter `nodePoints` to api.getNodePoints() ([10e5033](https://github.com/yozorajs/yozora/commit/10e503332b40dac35be93878d6763051e7022352))
212
+
213
+
214
+ ### Performance Improvements
215
+
216
+ * 🔖 publish v1.3.0 ([18c9b16](https://github.com/yozorajs/yozora/commit/18c9b167004ad97718b2f94f25139f80598cbf7a))
217
+
218
+
219
+
220
+ ## 1.2.2 (2021-09-06)
221
+
222
+
223
+ ### Performance Improvements
224
+
225
+ * 🔖 publish v1.2.2 ([fb4b804](https://github.com/yozorajs/yozora/commit/fb4b804548592c09259aabcf9cc4dd96176bd024))
226
+
227
+
228
+
229
+ ## 1.2.1 (2021-09-04)
230
+
231
+
232
+ ### Performance Improvements
233
+
234
+ * 🔖 publish v1.2.1 ([d98d07d](https://github.com/yozorajs/yozora/commit/d98d07d7c56dd9f6bb60149b2b0a4be2787e1046))
235
+
236
+
237
+
238
+ # 1.2.0 (2021-08-22)
239
+
240
+
241
+ ### Performance Improvements
242
+
243
+ * 🔖 publish v1.2.0 ([86da40e](https://github.com/yozorajs/yozora/commit/86da40e50d2fe9acace68695288e15e012e6cd0d))
244
+
245
+
246
+
247
+ # 1.2.0-alpha.1 (2021-08-16)
248
+
249
+
250
+ ### Performance Improvements
251
+
252
+ * 🔖 publish v1.2.0-alpha.1 ([ce3c173](https://github.com/yozorajs/yozora/commit/ce3c17330085f22404668a388f2bee6f57e6e958))
253
+
254
+
255
+
256
+ # 1.2.0-alpha.0 (2021-08-15)
257
+
258
+
259
+ ### Performance Improvements
260
+
261
+ * 🔖 publish v1.2.0-alpha.0 ([bd8ef45](https://github.com/yozorajs/yozora/commit/bd8ef455a22963834a70339f42178138aab28df6))
262
+
263
+
264
+
265
+ # 1.1.0 (2021-08-12)
266
+
267
+
268
+ ### Performance Improvements
269
+
270
+ * 🔖 publish v1.1.0 ([a8c7cff](https://github.com/yozorajs/yozora/commit/a8c7cffcbdc36930ab3c744450c8feb4395a9fac))
271
+ * 📝 update READMEs ([c21fd36](https://github.com/yozorajs/yozora/commit/c21fd3671dd747da46303713f9326f4644c73f7e))
272
+
273
+
274
+
275
+ # 1.1.0-alpha.2 (2021-08-07)
276
+
277
+
278
+ ### Performance Improvements
279
+
280
+ * 🔖 publish v1.1.0-alpha.2 ([d88b8ec](https://github.com/yozorajs/yozora/commit/d88b8eca03118b9f2a8b00ac4106ea82e779bc94))
281
+
282
+
283
+
284
+ # 1.1.0-alpha.1 (2021-08-01)
285
+
286
+
287
+ ### Performance Improvements
288
+
289
+ * 🔖 publish v1.1.0-alpha.1 ([0d6aa91](https://github.com/yozorajs/yozora/commit/0d6aa91fb5a15b962b016496453dbfa7f1197126))
290
+ * 📝 update READMEs ([738d626](https://github.com/yozorajs/yozora/commit/738d626d76c535ea017812f674b43842ee073227))
291
+
292
+
293
+
294
+ # 1.1.0-alpha.0 (2021-07-31)
295
+
296
+
297
+ ### Performance Improvements
298
+
299
+ * 🔖 publish v1.1.0-alpha.0 ([082653e](https://github.com/yozorajs/yozora/commit/082653e421889513588492774503d8ddcc24b8f9))
300
+ * 📝 update READMEs ([9905f04](https://github.com/yozorajs/yozora/commit/9905f0408b15d4478d021ef5c75497817f2db9a3))
301
+ * 📝 update READMEs ([03fe64c](https://github.com/yozorajs/yozora/commit/03fe64c6a9eab9bf810d4648261e7a808a13d1e1))
302
+
303
+
304
+
305
+ # 1.0.0 (2021-07-20)
306
+
307
+
308
+ ### Performance Improvements
309
+
310
+ * 🔖 publish v1.0.0 ([ad754e3](https://github.com/yozorajs/yozora/commit/ad754e3a5945cd2ce19d9e6bfa59cb82caf0c7ac))
311
+
312
+
313
+
314
+ # 1.0.0-beta.0 (2021-07-08)
315
+
316
+
317
+ ### Performance Improvements
318
+
319
+ * 🔖 publish v1.0.0-beta.0 ([bb66320](https://github.com/yozorajs/yozora/commit/bb6632098367cd8cf391eb1380d4542c15383bac))
320
+
321
+
322
+
323
+ # 1.0.0-1.0.0-beta.0.0 (2021-07-08)
324
+
325
+
326
+ ### Performance Improvements
327
+
328
+ * 🔖 publish v1.0.0-1.0.0-beta.0.0 ([4051dd2](https://github.com/yozorajs/yozora/commit/4051dd2bcdea0d051141abaa85635e52d84c04f2))
329
+ * 📝 update READMEs ([9d9f940](https://github.com/yozorajs/yozora/commit/9d9f940a81188502db6045134054b18b747819bf))
330
+
331
+
332
+
333
+ # 1.0.0-alpha.29 (2021-07-08)
334
+
335
+
336
+ ### Performance Improvements
337
+
338
+ * expose new utility func 'createTester' and 'createTesters' ([a4e9613](https://github.com/yozorajs/yozora/commit/a4e9613063e3e5840cf066e6e7343dbd5ffd4884))
339
+ * 📝 fix invalid link references ([f7b97b3](https://github.com/yozorajs/yozora/commit/f7b97b3dc74f065aa8f00ecd846ee4fa7f704453))
340
+ * 🔖 publish v1.0.0-alpha.29 ([f2291db](https://github.com/yozorajs/yozora/commit/f2291db2812043dd6586eaabd14e427abb11663a))
341
+ * 🎨 use path alias in tests ([29cca94](https://github.com/yozorajs/yozora/commit/29cca943d4fbc6d26af4507d3fa75ac08dcf388a))
342
+
343
+
344
+
345
+ # 1.0.0-alpha.28 (2021-06-30)
346
+
347
+
348
+ ### Performance Improvements
349
+
350
+ * 🔖 publish v1.0.0-alpha.28 ([f18d90a](https://github.com/yozorajs/yozora/commit/f18d90a116db508bf49c9a3338a262cb85faf792))
351
+
352
+
353
+
354
+ # 1.0.0-alpha.27 (2021-06-28)
355
+
356
+
357
+ ### Bug Fixes
358
+
359
+ * 🐛 FootnoteDefinitionTokenizer has priority over DefinitionTokenizer ([a19084a](https://github.com/yozorajs/yozora/commit/a19084ad864ee87f229ee0e9f6fde6aa3a48267e))
360
+
361
+
362
+ ### Performance Improvements
363
+
364
+ * 🎨 update base abstract tokenizer ([cca9dd6](https://github.com/yozorajs/yozora/commit/cca9dd6fc3d4a22e1352378f59c7d2dccecfc5a2))
365
+ * 🔖 publish v1.0.0-alpha.27 ([8efea07](https://github.com/yozorajs/yozora/commit/8efea07b2314c241c91fc113abdc8852f216c9d7))
366
+ * ⬆️ upgrade dev dependencies ([d126ff4](https://github.com/yozorajs/yozora/commit/d126ff4c81ec09b366a0c60ba2a83e7f45fbe317))
367
+
368
+
369
+
370
+ # 1.0.0-alpha.26 (2021-06-25)
371
+
372
+
373
+ ### Performance Improvements
374
+
375
+ * 🔖 publish v1.0.0-alpha.26 ([cbde29c](https://github.com/yozorajs/yozora/commit/cbde29c6188c9183f0b39ccfac0ad310803b09fe))
376
+ * 📝 update README ([37fa535](https://github.com/yozorajs/yozora/commit/37fa53559b52ab1cef6bee37ab6e94c8bdeebef4))
377
+ * 📝 update READMEs ([11e4f61](https://github.com/yozorajs/yozora/commit/11e4f6107c3862bf8c81dae882e93cab3f56f40f))
378
+
379
+
380
+
381
+ # 1.0.0-alpha.25 (2021-06-17)
382
+
383
+
384
+ ### Performance Improvements
385
+
386
+ * 🔖 publish v1.0.0-alpha.25 ([5e17f71](https://github.com/yozorajs/yozora/commit/5e17f7155391c21eb1c99e5024e48d5e208e80db))
387
+ * ⚰️ remove delimiterGroup as we are no longer need it ([e9de208](https://github.com/yozorajs/yozora/commit/e9de208eca035d874e1909869ab52a0a5201dd2f))
388
+ * 🎨 rewrite due to the algorithm changed ([7216611](https://github.com/yozorajs/yozora/commit/7216611d79f9f10faaf913500341b796a58c6b1b))
389
+
390
+
391
+
392
+ # 1.0.0-alpha.24 (2021-06-10)
393
+
394
+
395
+ ### Performance Improvements
396
+
397
+ * 🔖 publish v1.0.0-alpha.24 ([6169f8e](https://github.com/yozorajs/yozora/commit/6169f8ecda42e04203e4533f820e82ea3e93b7dd))
398
+
399
+
400
+
401
+ # 1.0.0-alpha.23 (2021-06-08)
402
+
403
+
404
+ ### Performance Improvements
405
+
406
+ * Move repository from github.com/guanghechen to github.com/yozorajs ([c1fd32c](https://github.com/yozorajs/yozora/commit/c1fd32ce818b44aa0d993ec8f74ef514bdf2d834))
407
+ * 🔖 publish v1.0.0-alpha.23 ([131a216](https://github.com/yozorajs/yozora/commit/131a2162b64eb23f98e93286974f4a3e4a91b77a))
408
+ * 📝 update READMEs ([6420941](https://github.com/yozorajs/yozora/commit/64209414cacdaf0e04329e2c86e6ff41f885f55f))
409
+
410
+
411
+
412
+ # 1.0.0-alpha.22 (2021-05-20)
413
+
414
+
415
+ ### Performance Improvements
416
+
417
+ * 🎨 lint codes ([0d2d798](https://github.com/yozorajs/yozora/commit/0d2d7988d1d46f873e2a9f5d37de9c5daa39a109))
418
+ * 🔖 publish v1.0.0-alpha.22 ([a07a41d](https://github.com/yozorajs/yozora/commit/a07a41de8dda2ff579b0e5b469db75d6c629c38b))
419
+ * 🔧 rename the main branch to 'main' instead of 'master' ([c915653](https://github.com/yozorajs/yozora/commit/c9156537fba68ce073e139eb487afb973b7d90ba))
420
+
421
+
422
+
423
+ # 1.0.0-alpha.21 (2021-05-12)
424
+
425
+
426
+ ### Performance Improvements
427
+
428
+ * 🔖 publish v1.0.0-alpha.21 ([e6655a2](https://github.com/yozorajs/yozora/commit/e6655a252c0b799d0990f06bc7cfdadc6824b63c))
429
+
430
+
431
+
432
+ # 1.0.0-alpha.20 (2021-04-20)
433
+
434
+
435
+ ### Performance Improvements
436
+
437
+ * 🔖 publish v1.0.0-alpha.20 ([3f3831f](https://github.com/yozorajs/yozora/commit/3f3831fb6fdb72319e7d24a1ba4b51b44bdb4c8d))
438
+
439
+
440
+
441
+ # 1.0.0-alpha.19 (2021-04-19)
442
+
443
+
444
+ ### Features
445
+
446
+ * 💥 remove meta from Yozora Ast Root, provider util funcs in @yozora/ast-util for handling this instead ([c90c8a9](https://github.com/yozorajs/yozora/commit/c90c8a942caed49544cd8d643dccfd1b6531ad6d))
447
+
448
+
449
+ ### Performance Improvements
450
+
451
+ * 🔖 publish v1.0.0-alpha.19 ([50b55f9](https://github.com/yozorajs/yozora/commit/50b55f9e5fd1d00c03d271a488d2a648ccd0a1d1))
452
+ * 📝 update READMEs ([907af97](https://github.com/yozorajs/yozora/commit/907af97f8c0bca5b045ccae188c6b759e88ec38c))
453
+
454
+
455
+
456
+ # 1.0.0-alpha.18 (2021-04-18)
457
+
458
+
459
+ ### Features
460
+
461
+ * ✨ implemented new tokenizer @yozora/tokenizer-definition-footnote & and built it into @yozora/parser & update tests ([dad817f](https://github.com/yozorajs/yozora/commit/dad817f24d43731167d972a31742a7898354f920))
462
+
463
+
464
+ ### Performance Improvements
465
+
466
+ * 🎨 move resolveLinkLabelAndIdentifier from @yozora/tokenizer-definition to @yozora/core-tokenizer ([ff7aac1](https://github.com/yozorajs/yozora/commit/ff7aac1376cabed0de785cd0379ba5fabfaf4a1f))
467
+ * 🔖 publish v1.0.0-alpha.18 ([219b28b](https://github.com/yozorajs/yozora/commit/219b28b38975d6d41f6c285a512a5c0dccceb6fa))
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/footnote-reference#readme">@yozora/tokenizer-footnote-reference</a>
5
+ <a href="https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-reference#readme">@yozora/tokenizer-footnote-reference</a>
6
6
  </h1>
7
7
  <div align="center">
8
8
  <a href="https://www.npmjs.com/package/@yozora/tokenizer-footnote-reference">
@@ -237,53 +237,53 @@ Name | Type | Required | Default
237
237
 
238
238
  [live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-footnote-reference#live-examples
239
239
  [docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-footnote-reference
240
- [homepage]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-reference#readme
240
+ [homepage]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-reference#readme
241
241
  [gfm-spec]: https://github.github.com/gfm
242
242
  [mdast-homepage]: https://github.com/syntax-tree/mdast
243
243
 
244
- [@yozora/ast]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast#readme
245
- [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast-util#readme
246
- [@yozora/character]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/character#readme
244
+ [@yozora/ast]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/ast#readme
245
+ [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/ast-util#readme
246
+ [@yozora/character]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/character#readme
247
247
  [@yozora/eslint-config]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
248
- [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/core-parser#readme
249
- [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/core-tokenizer#readme
250
- [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/invariant#readme
248
+ [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/core-parser#readme
249
+ [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/core-tokenizer#readme
250
+ [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/invariant#readme
251
251
  [@yozora/jest-for-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
252
- [@yozora/parser]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser#readme
253
- [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm#readme
254
- [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm-ex#readme
252
+ [@yozora/parser]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser#readme
253
+ [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser-gfm#readme
254
+ [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/v2.1.5/packages/parser-gfm-ex#readme
255
255
  [@yozora/template-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
256
- [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/admonition#readme
257
- [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink#readme
258
- [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink-extension#readme
259
- [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/blockquote#readme
260
- [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/break#readme
261
- [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/definition#readme
262
- [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/delete#readme
263
- [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/ecma-import#readme
264
- [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/emphasis#readme
265
- [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-block#readme
266
- [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-code#readme
267
- [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote#readme
268
- [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-definition#readme
269
- [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-reference#readme
270
- [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/heading#readme
271
- [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-block#readme
272
- [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline#readme
273
- [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image#readme
274
- [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image-reference#readme
275
- [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/indented-code#readme
276
- [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-code#readme
277
- [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-math#readme
278
- [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link#readme
279
- [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link-reference#readme
280
- [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/list#readme
281
- [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/math#readme
282
- [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/paragraph#readme
283
- [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/setext-heading#readme
284
- [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/table#readme
285
- [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/text#readme
286
- [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/thematic-break#readme
256
+ [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/admonition#readme
257
+ [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/autolink#readme
258
+ [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/autolink-extension#readme
259
+ [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/blockquote#readme
260
+ [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/break#readme
261
+ [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/definition#readme
262
+ [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/delete#readme
263
+ [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/ecma-import#readme
264
+ [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/emphasis#readme
265
+ [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/fenced-block#readme
266
+ [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/fenced-code#readme
267
+ [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote#readme
268
+ [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-definition#readme
269
+ [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/footnote-reference#readme
270
+ [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/heading#readme
271
+ [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/html-block#readme
272
+ [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/html-inline#readme
273
+ [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/image#readme
274
+ [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/image-reference#readme
275
+ [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/indented-code#readme
276
+ [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/inline-code#readme
277
+ [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/inline-math#readme
278
+ [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/link#readme
279
+ [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/link-reference#readme
280
+ [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/list#readme
281
+ [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/math#readme
282
+ [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/paragraph#readme
283
+ [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/setext-heading#readme
284
+ [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/table#readme
285
+ [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/text#readme
286
+ [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/v2.1.5/tokenizers/thematic-break#readme
287
287
 
288
288
  [@yozora/react-admonition]: https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
289
289
  [@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-footnote-reference",
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,10 +39,10 @@
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",
45
- "@yozora/tokenizer-footnote-definition": "^2.1.3"
42
+ "@yozora/ast": "^2.1.5",
43
+ "@yozora/character": "^2.1.5",
44
+ "@yozora/core-tokenizer": "^2.1.5",
45
+ "@yozora/tokenizer-footnote-definition": "^2.1.5"
46
46
  },
47
- "gitHead": "9abaaff74a12d0bae0f645813241ff947a0d828c"
47
+ "gitHead": "4f753bcf0fd921938464802462dc48c53bbd014d"
48
48
  }
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export { match as footnoteReferenceMatch } from './match'
2
- export { parse as footnoteReferenceParse } from './parse'
3
- export { FootnoteReferenceTokenizer, FootnoteReferenceTokenizer as default } from './tokenizer'
4
- export { uniqueName as FootnoteReferenceTokenizerName } from './types'
5
- export type {
6
- IThis as IFootnoteReferenceHookContext,
7
- IToken as IFootnoteReferenceToken,
8
- ITokenizerProps as IFootnoteReferenceTokenizerProps,
9
- } from './types'
package/src/match.ts DELETED
@@ -1,85 +0,0 @@
1
- import { FootnoteReferenceType } 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, resolveLinkLabelAndIdentifier } from '@yozora/core-tokenizer'
9
- import { eatFootnoteLabel } from '@yozora/tokenizer-footnote-definition'
10
- import type { IDelimiter, IThis, IToken, T } from './types'
11
-
12
- /**
13
- * A full footnote consists of a footnote label.
14
- *
15
- * Unlike the link label, the footnote label should be on the same line and it
16
- * begins with a left bracket ([) followed by a caret (^), and ends with the
17
- * first right bracket (]) that is not backslash-escaped. Between the caret of
18
- * right bracket, there must be at least one non-whitespace character.
19
- * Unescaped square bracket characters are not allowed inside the opening creat
20
- * and closing square bracket of footnote labels. A footnote label can have at
21
- * most 999 characters inside the caret and right bracket.
22
- *
23
- * @see https://github.com/syntax-tree/mdast#footnotereference
24
- * @see https://github.github.com/gfm/#link-label
25
- */
26
- export const match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis> = function (api) {
27
- return {
28
- findDelimiter: () => genFindDelimiter<IDelimiter>(_findDelimiter),
29
- processSingleDelimiter,
30
- }
31
-
32
- function _findDelimiter(startIndex: number, endIndex: number): IDelimiter | null {
33
- const nodePoints: ReadonlyArray<INodePoint> = api.getNodePoints()
34
-
35
- for (let i = startIndex; i < endIndex; ++i) {
36
- const p = nodePoints[i]
37
- switch (p.codePoint) {
38
- case AsciiCodePoint.BACKSLASH:
39
- i += 1
40
- break
41
- /**
42
- * A footnote text consists of a sequence of zero or more inline elements
43
- * enclosed by square brackets ([ and ])
44
- * @see https://github.github.com/gfm/#footnote-text
45
- */
46
- case AsciiCodePoint.OPEN_BRACKET: {
47
- const nextIndex = eatFootnoteLabel(nodePoints, i, endIndex)
48
- if (nextIndex >= 0) {
49
- return {
50
- type: 'full',
51
- startIndex: i,
52
- endIndex: nextIndex,
53
- }
54
- }
55
- break
56
- }
57
- }
58
- }
59
- return null
60
- }
61
-
62
- function processSingleDelimiter(
63
- delimiter: IDelimiter,
64
- ): IResultOfProcessSingleDelimiter<T, IToken> {
65
- const nodePoints: ReadonlyArray<INodePoint> = api.getNodePoints()
66
- const labelAndIdentifier = resolveLinkLabelAndIdentifier(
67
- nodePoints,
68
- delimiter.startIndex + 2,
69
- delimiter.endIndex - 1,
70
- )
71
- if (labelAndIdentifier == null) return []
72
-
73
- const { label, identifier } = labelAndIdentifier
74
- if (!api.hasFootnoteDefinition(identifier)) return []
75
-
76
- const token: IToken = {
77
- nodeType: FootnoteReferenceType,
78
- startIndex: delimiter.startIndex,
79
- endIndex: delimiter.endIndex,
80
- label,
81
- identifier,
82
- }
83
- return [token]
84
- }
85
- }
package/src/parse.ts DELETED
@@ -1,16 +0,0 @@
1
- import { FootnoteReferenceType } from '@yozora/ast'
2
- import type { IParseInlineHookCreator } from '@yozora/core-tokenizer'
3
- import type { INode, IThis, IToken, T } from './types'
4
-
5
- export const parse: IParseInlineHookCreator<T, IToken, INode, IThis> = function (api) {
6
- return {
7
- parse: tokens =>
8
- tokens.map(token => {
9
- const { identifier, label } = token
10
- const node: INode = api.shouldReservePosition
11
- ? { type: FootnoteReferenceType, position: api.calcPosition(token), identifier, label }
12
- : { type: FootnoteReferenceType, identifier, label }
13
- return node
14
- }),
15
- }
16
- }
package/src/tokenizer.ts DELETED
@@ -1,32 +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 footnote reference.
14
- * @see https://github.com/syntax-tree/mdast#footnotereference
15
- * @see https://github.github.com/gfm/#link-label
16
- */
17
- export class FootnoteReferenceTokenizer
18
- extends BaseInlineTokenizer<T, IDelimiter, IToken, INode, IThis>
19
- implements IInlineTokenizer<T, IDelimiter, IToken, INode, IThis>
20
- {
21
- /* istanbul ignore next */
22
- constructor(props: ITokenizerProps = {}) {
23
- super({
24
- name: props.name ?? uniqueName,
25
- priority: props.priority ?? TokenizerPriority.ATOMIC,
26
- })
27
- }
28
-
29
- public override readonly match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis> = match
30
-
31
- public override readonly parse: IParseInlineHookCreator<T, IToken, INode, IThis> = parse
32
- }
package/src/types.ts DELETED
@@ -1,22 +0,0 @@
1
- import type { Association, FootnoteReference, FootnoteReferenceType } from '@yozora/ast'
2
- import type {
3
- IBaseInlineTokenizerProps,
4
- IPartialInlineToken,
5
- ITokenDelimiter,
6
- ITokenizer,
7
- } from '@yozora/core-tokenizer'
8
-
9
- export const uniqueName = '@yozora/tokenizer-footnote-reference'
10
-
11
- export type T = FootnoteReferenceType
12
- export type INode = FootnoteReference
13
-
14
- export interface IToken extends IPartialInlineToken<T>, Association {}
15
-
16
- export interface IDelimiter extends ITokenDelimiter {
17
- type: 'full'
18
- }
19
-
20
- export type IThis = ITokenizer
21
-
22
- export type ITokenizerProps = Partial<IBaseInlineTokenizerProps>