@@ -379,25 +379,25 @@ test('markdown -> mdast', (t) => {
379379 start : 4 ,
380380 end : 8 ,
381381 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 }
384384 } ,
385385 properties : [
386386 {
387387 type : 'SpreadElement' ,
388388 start : 4 ,
389389 end : 8 ,
390390 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 }
393393 } ,
394394 argument : {
395395 type : 'Identifier' ,
396396 start : 7 ,
397397 end : 8 ,
398398 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 }
401401 } ,
402402 name : 'b' ,
403403 range : [ 7 , 8 ]
@@ -410,15 +410,18 @@ test('markdown -> mdast', (t) => {
410410 start : 4 ,
411411 end : 8 ,
412412 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 }
415415 } ,
416416 range : [ 4 , 8 ]
417417 }
418418 ] ,
419419 sourceType : 'module' ,
420420 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+ } ,
422425 range : [ 4 , 8 ]
423426 }
424427 }
@@ -469,8 +472,8 @@ test('markdown -> mdast', (t) => {
469472 start : 6 ,
470473 end : 7 ,
471474 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 }
474477 } ,
475478 value : 1 ,
476479 raw : '1' ,
@@ -479,17 +482,17 @@ test('markdown -> mdast', (t) => {
479482 start : 6 ,
480483 end : 7 ,
481484 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 }
484487 } ,
485488 range : [ 6 , 7 ]
486489 }
487490 ] ,
488491 sourceType : 'module' ,
489492 comments : [ ] ,
490493 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 }
493496 } ,
494497 range : [ 6 , 7 ]
495498 }
0 commit comments