@@ -379,25 +379,25 @@ test('markdown -> mdast', (t) => {
379
379
start : 4 ,
380
380
end : 8 ,
381
381
loc : {
382
- start : { line : 1 , column : 4 } ,
383
- end : { line : 1 , column : 8 }
382
+ start : { line : 1 , column : 4 , offset : 4 } ,
383
+ end : { line : 1 , column : 8 , offset : 8 }
384
384
} ,
385
385
properties : [
386
386
{
387
387
type : 'SpreadElement' ,
388
388
start : 4 ,
389
389
end : 8 ,
390
390
loc : {
391
- start : { line : 1 , column : 4 } ,
392
- end : { line : 1 , column : 8 }
391
+ start : { line : 1 , column : 4 , offset : 4 } ,
392
+ end : { line : 1 , column : 8 , offset : 8 }
393
393
} ,
394
394
argument : {
395
395
type : 'Identifier' ,
396
396
start : 7 ,
397
397
end : 8 ,
398
398
loc : {
399
- start : { line : 1 , column : 7 } ,
400
- end : { line : 1 , column : 8 }
399
+ start : { line : 1 , column : 7 , offset : 7 } ,
400
+ end : { line : 1 , column : 8 , offset : 8 }
401
401
} ,
402
402
name : 'b' ,
403
403
range : [ 7 , 8 ]
@@ -410,15 +410,18 @@ test('markdown -> mdast', (t) => {
410
410
start : 4 ,
411
411
end : 8 ,
412
412
loc : {
413
- start : { line : 1 , column : 4 } ,
414
- end : { line : 1 , column : 8 }
413
+ start : { line : 1 , column : 4 , offset : 4 } ,
414
+ end : { line : 1 , column : 8 , offset : 8 }
415
415
} ,
416
416
range : [ 4 , 8 ]
417
417
}
418
418
] ,
419
419
sourceType : 'module' ,
420
420
comments : [ ] ,
421
- loc : { start : { line : 1 , column : 4 } , end : { line : 1 , column : 8 } } ,
421
+ loc : {
422
+ start : { line : 1 , column : 4 , offset : 4 } ,
423
+ end : { line : 1 , column : 8 , offset : 8 }
424
+ } ,
422
425
range : [ 4 , 8 ]
423
426
}
424
427
}
@@ -469,8 +472,8 @@ test('markdown -> mdast', (t) => {
469
472
start : 6 ,
470
473
end : 7 ,
471
474
loc : {
472
- start : { line : 1 , column : 6 } ,
473
- end : { line : 1 , column : 7 }
475
+ start : { line : 1 , column : 6 , offset : 6 } ,
476
+ end : { line : 1 , column : 7 , offset : 7 }
474
477
} ,
475
478
value : 1 ,
476
479
raw : '1' ,
@@ -479,17 +482,17 @@ test('markdown -> mdast', (t) => {
479
482
start : 6 ,
480
483
end : 7 ,
481
484
loc : {
482
- start : { line : 1 , column : 6 } ,
483
- end : { line : 1 , column : 7 }
485
+ start : { line : 1 , column : 6 , offset : 6 } ,
486
+ end : { line : 1 , column : 7 , offset : 7 }
484
487
} ,
485
488
range : [ 6 , 7 ]
486
489
}
487
490
] ,
488
491
sourceType : 'module' ,
489
492
comments : [ ] ,
490
493
loc : {
491
- start : { line : 1 , column : 6 } ,
492
- end : { line : 1 , column : 7 }
494
+ start : { line : 1 , column : 6 , offset : 6 } ,
495
+ end : { line : 1 , column : 7 , offset : 7 }
493
496
} ,
494
497
range : [ 6 , 7 ]
495
498
}
0 commit comments