@@ -20,14 +20,14 @@ test('core', async function (t) {
20
20
} )
21
21
} )
22
22
23
- test ( 'gfmAutolinkLiteralFromMarkdown' , async function ( t ) {
23
+ test ( 'gfmAutolinkLiteralFromMarkdown() ' , async function ( t ) {
24
24
await t . test ( 'should support autolink literals' , async function ( ) {
25
25
assert . deepEqual (
26
26
fromMarkdown (
27
27
'www.example.com, https://example.com, and contact@example.com.' ,
28
28
{
29
29
extensions : [ gfmAutolinkLiteral ( ) ] ,
30
- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
30
+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
31
31
}
32
32
) ,
33
33
{
@@ -136,7 +136,7 @@ test('gfmAutolinkLiteralFromMarkdown', async function (t) {
136
136
assert . deepEqual (
137
137
fromMarkdown ( '[https://google.com](https://google.com)' , {
138
138
extensions : [ gfmAutolinkLiteral ( ) ] ,
139
- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
139
+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
140
140
} ) ,
141
141
{
142
142
type : 'root' ,
@@ -179,7 +179,7 @@ test('gfmAutolinkLiteralFromMarkdown', async function (t) {
179
179
} )
180
180
} )
181
181
182
- test ( 'gfmAutolinkLiteralToMarkdown' , async function ( t ) {
182
+ test ( 'gfmAutolinkLiteralToMarkdown() ' , async function ( t ) {
183
183
await t . test ( 'should not serialize autolink literals' , async function ( ) {
184
184
assert . deepEqual (
185
185
toMarkdown (
@@ -196,7 +196,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
196
196
{ type : 'text' , value : ' c.' }
197
197
]
198
198
} ,
199
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
199
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
200
200
) ,
201
201
'a <contact@example.com> c.\n'
202
202
)
@@ -208,7 +208,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
208
208
assert . deepEqual (
209
209
toMarkdown (
210
210
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a b@c.d' } ] } ,
211
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
211
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
212
212
) ,
213
213
'a b\\@c.d\n'
214
214
)
@@ -221,7 +221,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
221
221
assert . deepEqual (
222
222
toMarkdown (
223
223
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a @c' } ] } ,
224
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
224
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
225
225
) ,
226
226
'a @c\n'
227
227
)
@@ -234,7 +234,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
234
234
assert . deepEqual (
235
235
toMarkdown (
236
236
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a www.b.c' } ] } ,
237
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
237
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
238
238
) ,
239
239
'a www\\.b.c\n'
240
240
)
@@ -247,7 +247,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
247
247
assert . deepEqual (
248
248
toMarkdown (
249
249
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a.b' } ] } ,
250
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
250
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
251
251
) ,
252
252
'a.b\n'
253
253
)
@@ -260,7 +260,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
260
260
assert . deepEqual (
261
261
toMarkdown (
262
262
{ type : 'paragraph' , children : [ { type : 'text' , value : 'https:/' } ] } ,
263
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
263
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
264
264
) ,
265
265
'https\\:/\n'
266
266
)
@@ -273,7 +273,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
273
273
assert . deepEqual (
274
274
toMarkdown (
275
275
{ type : 'paragraph' , children : [ { type : 'text' , value : 'https:a' } ] } ,
276
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
276
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
277
277
) ,
278
278
'https:a\n'
279
279
)
@@ -286,7 +286,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
286
286
assert . deepEqual (
287
287
toMarkdown (
288
288
{ type : 'definition' , label : 'http://a' , identifier : '' , url : '' } ,
289
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
289
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
290
290
) ,
291
291
'[http://a]: <>\n'
292
292
)
@@ -310,7 +310,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
310
310
}
311
311
]
312
312
} ,
313
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
313
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
314
314
) ,
315
315
'[http://a][]\n'
316
316
)
@@ -334,7 +334,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
334
334
}
335
335
]
336
336
} ,
337
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
337
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
338
338
) ,
339
339
'[http://a][a]\n'
340
340
)
@@ -358,7 +358,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
358
358
}
359
359
]
360
360
} ,
361
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
361
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
362
362
) ,
363
363
'[a][http://a]\n'
364
364
)
@@ -380,7 +380,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
380
380
}
381
381
]
382
382
} ,
383
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
383
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
384
384
) ,
385
385
'[a](http://a)\n'
386
386
)
@@ -404,7 +404,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
404
404
}
405
405
]
406
406
} ,
407
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
407
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
408
408
) ,
409
409
'![a][http://a]\n'
410
410
)
@@ -428,7 +428,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
428
428
}
429
429
]
430
430
} ,
431
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
431
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
432
432
) ,
433
433
'![http://a][a]\n'
434
434
)
@@ -444,7 +444,7 @@ test('gfmAutolinkLiteralToMarkdown', async function (t) {
444
444
type : 'paragraph' ,
445
445
children : [ { type : 'image' , url : 'http://a' , alt : 'a' } ]
446
446
} ,
447
- { extensions : [ gfmAutolinkLiteralToMarkdown ] }
447
+ { extensions : [ gfmAutolinkLiteralToMarkdown ( ) ] }
448
448
) ,
449
449
'\n'
450
450
)
@@ -474,7 +474,7 @@ test('fixtures', async function (t) {
474
474
475
475
const mdast = fromMarkdown ( input , {
476
476
extensions : [ gfmAutolinkLiteral ( ) ] ,
477
- mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ]
477
+ mdastExtensions : [ gfmAutolinkLiteralFromMarkdown ( ) ]
478
478
} )
479
479
480
480
// @ts -expect-error: to do, remove when `to-hast` is released.
0 commit comments