@@ -158,7 +158,7 @@ test('core', async function (t) {
158
158
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b' } ] }
159
159
]
160
160
} ) ,
161
- '* a\n\n b\n'
161
+ '* a\n\n b\n'
162
162
)
163
163
}
164
164
)
@@ -175,7 +175,7 @@ test('core', async function (t) {
175
175
{ type : 'definition' , identifier : 'b' , label : 'c' , url : 'd' }
176
176
]
177
177
} ) ,
178
- '* a\n\n [c]: d\n'
178
+ '* a\n\n [c]: d\n'
179
179
)
180
180
}
181
181
)
@@ -192,7 +192,7 @@ test('core', async function (t) {
192
192
{ type : 'heading' , depth : 1 , children : [ { type : 'text' , value : 'b' } ] }
193
193
]
194
194
} ) ,
195
- '* a\n # b\n'
195
+ '* a\n # b\n'
196
196
)
197
197
}
198
198
)
@@ -216,7 +216,7 @@ test('core', async function (t) {
216
216
} ,
217
217
{ setext : true }
218
218
) ,
219
- '* a\n\n b\n =\n'
219
+ '* a\n\n b\n =\n'
220
220
)
221
221
}
222
222
)
@@ -696,7 +696,7 @@ test('blockquote', async function (t) {
696
696
}
697
697
]
698
698
} ) ,
699
- '> a\n> b\n>\n> - c\n> d\n>\n> - ***\n>\n> - e\n> f\n'
699
+ '> a\n> b\n>\n> - c\n> d\n>\n> - ***\n>\n> - e\n> f\n'
700
700
)
701
701
} )
702
702
@@ -2735,7 +2735,7 @@ test('list', async function (t) {
2735
2735
}
2736
2736
]
2737
2737
} ) ,
2738
- '- a\n\n- ***\n\n- b\n'
2738
+ '- a\n\n- ***\n\n- b\n'
2739
2739
)
2740
2740
} )
2741
2741
@@ -2759,7 +2759,7 @@ test('list', async function (t) {
2759
2759
}
2760
2760
]
2761
2761
} ) ,
2762
- '- a\n- ***\n'
2762
+ '- a\n- ***\n'
2763
2763
)
2764
2764
}
2765
2765
)
@@ -2785,7 +2785,7 @@ test('list', async function (t) {
2785
2785
}
2786
2786
]
2787
2787
} ) ,
2788
- '- a\n\n b\n- ***\n'
2788
+ '- a\n\n b\n- ***\n'
2789
2789
)
2790
2790
}
2791
2791
)
@@ -2828,7 +2828,7 @@ test('list', async function (t) {
2828
2828
}
2829
2829
]
2830
2830
} ) ,
2831
- '1. a\n\n2. ***\n\n3. b\n'
2831
+ '1. a\n\n2. ***\n\n3. b\n'
2832
2832
)
2833
2833
} )
2834
2834
@@ -2859,7 +2859,7 @@ test('list', async function (t) {
2859
2859
}
2860
2860
]
2861
2861
} ) ,
2862
- '1. a\n2. ***\n3. b\n'
2862
+ '1. a\n2. ***\n3. b\n'
2863
2863
)
2864
2864
}
2865
2865
)
@@ -2894,7 +2894,7 @@ test('list', async function (t) {
2894
2894
} ,
2895
2895
{ incrementListMarker : false }
2896
2896
) ,
2897
- '1. a\n1. ***\n1. b\n'
2897
+ '1. a\n1. ***\n1. b\n'
2898
2898
)
2899
2899
}
2900
2900
)
@@ -3212,7 +3212,7 @@ test('listItem', async function (t) {
3212
3212
type : 'listItem' ,
3213
3213
children : [ { type : 'paragraph' , children : [ { type : 'text' , value : 'a' } ] } ]
3214
3214
} ) ,
3215
- '* a\n'
3215
+ '* a\n'
3216
3216
)
3217
3217
} )
3218
3218
@@ -3226,7 +3226,7 @@ test('listItem', async function (t) {
3226
3226
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b' } ] }
3227
3227
]
3228
3228
} ) ,
3229
- '* a\n\n ***\n\n b\n'
3229
+ '* a\n\n ***\n\n b\n'
3230
3230
)
3231
3231
} )
3232
3232
@@ -3314,15 +3314,15 @@ test('listItem', async function (t) {
3314
3314
{ type : 'thematicBreak' }
3315
3315
]
3316
3316
} ) ,
3317
- '* a\n ***\n'
3317
+ '* a\n ***\n'
3318
3318
)
3319
3319
}
3320
3320
)
3321
3321
3322
3322
await t . test ( 'should support `bulletOther`' , async function ( ) {
3323
3323
assert . equal (
3324
3324
to ( createList ( createList ( createList ( ) ) ) , { bulletOther : '+' } ) ,
3325
- '* * +\n'
3325
+ '* * +\n'
3326
3326
)
3327
3327
} )
3328
3328
@@ -3331,7 +3331,7 @@ test('listItem', async function (t) {
3331
3331
async function ( ) {
3332
3332
assert . equal (
3333
3333
to ( createList ( createList ( createList ( ) ) ) , { bullet : '-' } ) ,
3334
- '- - *\n'
3334
+ '- - *\n'
3335
3335
)
3336
3336
}
3337
3337
)
@@ -3341,7 +3341,7 @@ test('listItem', async function (t) {
3341
3341
async function ( ) {
3342
3342
assert . equal (
3343
3343
to ( createList ( createList ( createList ( ) ) ) , { bullet : '*' } ) ,
3344
- '* * -\n'
3344
+ '* * -\n'
3345
3345
)
3346
3346
}
3347
3347
)
@@ -3378,7 +3378,7 @@ test('listItem', async function (t) {
3378
3378
type : 'list' ,
3379
3379
children : [ { type : 'listItem' , children : [ { type : 'thematicBreak' } ] } ]
3380
3380
} ) ,
3381
- '- ***\n'
3381
+ '- ***\n'
3382
3382
)
3383
3383
}
3384
3384
)
@@ -3399,22 +3399,22 @@ test('listItem', async function (t) {
3399
3399
{ type : 'listItem' , children : [ { type : 'thematicBreak' } ] }
3400
3400
]
3401
3401
} ) ,
3402
- '- a\n\n- ***\n'
3402
+ '- a\n\n- ***\n'
3403
3403
)
3404
3404
}
3405
3405
)
3406
3406
3407
3407
await t . test (
3408
3408
'should *not* use a different bullet for an empty list item in two lists' ,
3409
3409
async function ( ) {
3410
- assert . equal ( to ( createList ( createList ( ) ) ) , '* *\n' )
3410
+ assert . equal ( to ( createList ( createList ( ) ) ) , '* *\n' )
3411
3411
}
3412
3412
)
3413
3413
3414
3414
await t . test (
3415
3415
'should use a different bullet for an empty list item in three lists (1)' ,
3416
3416
async function ( ) {
3417
- assert . equal ( to ( createList ( createList ( createList ( ) ) ) ) , '* * -\n' )
3417
+ assert . equal ( to ( createList ( createList ( createList ( ) ) ) ) , '* * -\n' )
3418
3418
}
3419
3419
)
3420
3420
@@ -3429,7 +3429,7 @@ test('listItem', async function (t) {
3429
3429
{ type : 'listItem' , children : [ createList ( createList ( ) ) ] }
3430
3430
]
3431
3431
} ) ,
3432
- '*\n\n* * -\n'
3432
+ '*\n\n* * -\n'
3433
3433
)
3434
3434
}
3435
3435
)
@@ -3439,7 +3439,7 @@ test('listItem', async function (t) {
3439
3439
async function ( ) {
3440
3440
assert . equal (
3441
3441
to ( createList ( createList ( createList ( ) ) ) , { bullet : '+' } ) ,
3442
- '+ + +\n'
3442
+ '+ + +\n'
3443
3443
)
3444
3444
}
3445
3445
)
@@ -3449,7 +3449,7 @@ test('listItem', async function (t) {
3449
3449
async function ( ) {
3450
3450
assert . equal (
3451
3451
to ( createList ( createList ( createList ( createList ( ) ) ) ) ) ,
3452
- '* * * -\n'
3452
+ '* * * -\n'
3453
3453
)
3454
3454
}
3455
3455
)
@@ -3459,7 +3459,7 @@ test('listItem', async function (t) {
3459
3459
async function ( ) {
3460
3460
assert . equal (
3461
3461
to ( createList ( createList ( createList ( createList ( createList ( ) ) ) ) ) ) ,
3462
- '* * * * -\n'
3462
+ '* * * * -\n'
3463
3463
)
3464
3464
}
3465
3465
)
@@ -3479,7 +3479,7 @@ test('listItem', async function (t) {
3479
3479
] )
3480
3480
)
3481
3481
) ,
3482
- '* * * a\n\n <!---->\n\n *\n'
3482
+ '* * * a\n\n <!---->\n\n *\n'
3483
3483
)
3484
3484
}
3485
3485
)
@@ -3810,7 +3810,7 @@ test('escape', async function (t) {
3810
3810
{ type : 'paragraph' , children : [ { type : 'text' , value : '> a\n> b' } ] }
3811
3811
]
3812
3812
} ) ,
3813
- '* \\> a\n \\> b\n'
3813
+ '* \\> a\n \\> b\n'
3814
3814
)
3815
3815
}
3816
3816
)
@@ -4296,7 +4296,7 @@ test('escape', async function (t) {
4296
4296
]
4297
4297
}
4298
4298
) ,
4299
- '1. foo\n * bar\n'
4299
+ '1. foo\n * bar\n'
4300
4300
)
4301
4301
}
4302
4302
)
@@ -4371,9 +4371,9 @@ test('roundtrip', async function (t) {
4371
4371
'should roundtrip spread items in block quotes' ,
4372
4372
async function ( ) {
4373
4373
const doc = [
4374
- '> * Lorem ipsum dolor sit amet' ,
4374
+ '> * Lorem ipsum dolor sit amet' ,
4375
4375
'>' ,
4376
- '> * consectetur adipisicing elit' ,
4376
+ '> * consectetur adipisicing elit' ,
4377
4377
''
4378
4378
] . join ( '\n' )
4379
4379
@@ -4385,11 +4385,11 @@ test('roundtrip', async function (t) {
4385
4385
'should roundtrip spread items in sublists (1)' ,
4386
4386
async function ( ) {
4387
4387
const doc = [
4388
- '* Lorem ipsum dolor sit amet' ,
4388
+ '* Lorem ipsum dolor sit amet' ,
4389
4389
'' ,
4390
- ' 1. consectetur adipisicing elit' ,
4390
+ ' 1. consectetur adipisicing elit' ,
4391
4391
'' ,
4392
- ' 2. sed do eiusmod tempor incididunt' ,
4392
+ ' 2. sed do eiusmod tempor incididunt' ,
4393
4393
''
4394
4394
] . join ( '\n' )
4395
4395
@@ -4401,9 +4401,9 @@ test('roundtrip', async function (t) {
4401
4401
'should roundtrip spread items in sublists (2)' ,
4402
4402
async function ( ) {
4403
4403
const doc = [
4404
- '* 1. Lorem ipsum dolor sit amet' ,
4404
+ '* 1. Lorem ipsum dolor sit amet' ,
4405
4405
'' ,
4406
- ' 2. consectetur adipisicing elit' ,
4406
+ ' 2. consectetur adipisicing elit' ,
4407
4407
''
4408
4408
] . join ( '\n' )
4409
4409
@@ -4415,15 +4415,15 @@ test('roundtrip', async function (t) {
4415
4415
'should roundtrip spread items in sublists (3)' ,
4416
4416
async function ( ) {
4417
4417
const doc = [
4418
- '* hello' ,
4419
- ' * world' ,
4420
- ' how' ,
4418
+ '* hello' ,
4419
+ ' * world' ,
4420
+ ' how' ,
4421
4421
'' ,
4422
- ' are' ,
4423
- ' you' ,
4422
+ ' are' ,
4423
+ ' you' ,
4424
4424
'' ,
4425
- ' * today' ,
4426
- '* hi' ,
4425
+ ' * today' ,
4426
+ '* hi' ,
4427
4427
''
4428
4428
] . join ( '\n' )
4429
4429
@@ -4460,25 +4460,25 @@ test('roundtrip', async function (t) {
4460
4460
4461
4461
await t . test ( 'should roundtrip empty lists' , async function ( ) {
4462
4462
const doc = [
4463
- '* foo' ,
4463
+ '* foo' ,
4464
4464
'' ,
4465
4465
'*' ,
4466
4466
'' ,
4467
- '* bar' ,
4467
+ '* bar' ,
4468
4468
'' ,
4469
- '* baz' ,
4469
+ '* baz' ,
4470
4470
'' ,
4471
4471
'*' ,
4472
4472
'' ,
4473
- '* qux quux' ,
4473
+ '* qux quux' ,
4474
4474
''
4475
4475
] . join ( '\n' )
4476
4476
4477
4477
assert . equal ( to ( from ( doc ) ) , doc )
4478
4478
} )
4479
4479
4480
4480
await t . test ( 'should roundtrip empty lists' , async function ( ) {
4481
- const doc = '* a\n\n<!---->\n\n* b\n'
4481
+ const doc = '* a\n\n<!---->\n\n* b\n'
4482
4482
4483
4483
assert . equal ( to ( from ( doc ) ) , doc )
4484
4484
} )
@@ -4553,7 +4553,7 @@ test('roundtrip', async function (t) {
4553
4553
await t . test (
4554
4554
'should roundtrip an empty list item in two more lists' ,
4555
4555
async function ( ) {
4556
- const doc = '* * -\n'
4556
+ const doc = '* * -\n'
4557
4557
4558
4558
assert . equal ( to ( from ( doc ) ) , doc )
4559
4559
}
@@ -4562,7 +4562,7 @@ test('roundtrip', async function (t) {
4562
4562
await t . test (
4563
4563
'should roundtrip a thematic break at the start of a list item' ,
4564
4564
async function ( ) {
4565
- const doc = '- ***\n'
4565
+ const doc = '- ***\n'
4566
4566
4567
4567
assert . equal ( to ( from ( doc ) ) , doc )
4568
4568
}
0 commit comments