@@ -255,23 +255,26 @@ test('markdown -> mdast', (t) => {
255255 end : 2 ,
256256 name : 'a' ,
257257 loc : {
258- start : { line : 1 , column : 1 } ,
259- end : { line : 1 , column : 2 }
258+ start : { line : 1 , column : 1 , offset : 1 } ,
259+ end : { line : 1 , column : 2 , offset : 2 }
260260 } ,
261261 range : [ 1 , 2 ]
262262 } ,
263263 start : 1 ,
264264 end : 2 ,
265265 loc : {
266- start : { line : 1 , column : 1 } ,
267- end : { line : 1 , column : 2 }
266+ start : { line : 1 , column : 1 , offset : 1 } ,
267+ end : { line : 1 , column : 2 , offset : 2 }
268268 } ,
269269 range : [ 1 , 2 ]
270270 }
271271 ] ,
272272 sourceType : 'module' ,
273273 comments : [ ] ,
274- loc : { start : { line : 1 , column : 1 } , end : { line : 1 , column : 2 } } ,
274+ loc : {
275+ start : { line : 1 , column : 1 , offset : 1 } ,
276+ end : { line : 1 , column : 2 , offset : 2 }
277+ } ,
275278 range : [ 1 , 2 ]
276279 }
277280 }
@@ -321,16 +324,16 @@ test('markdown -> mdast', (t) => {
321324 end : 10 ,
322325 name : 'c' ,
323326 loc : {
324- start : { line : 1 , column : 9 } ,
325- end : { line : 1 , column : 10 }
327+ start : { line : 1 , column : 9 , offset : 9 } ,
328+ end : { line : 1 , column : 10 , offset : 10 }
326329 } ,
327330 range : [ 9 , 10 ]
328331 } ,
329332 start : 3 ,
330333 end : 16 ,
331334 loc : {
332- start : { line : 1 , column : 3 } ,
333- end : { line : 1 , column : 16 }
335+ start : { line : 1 , column : 3 , offset : 3 } ,
336+ end : { line : 2 , column : 0 , offset : 16 }
334337 } ,
335338 range : [ 3 , 16 ]
336339 }
@@ -343,8 +346,8 @@ test('markdown -> mdast', (t) => {
343346 start : 3 ,
344347 end : 8 ,
345348 loc : {
346- start : { line : 1 , column : 3 } ,
347- end : { line : 1 , column : 8 }
349+ start : { line : 1 , column : 3 , offset : 3 } ,
350+ end : { line : 1 , column : 8 , offset : 8 }
348351 } ,
349352 range : [ 3 , 8 ]
350353 } ,
@@ -354,15 +357,15 @@ test('markdown -> mdast', (t) => {
354357 start : 11 ,
355358 end : 15 ,
356359 loc : {
357- start : { line : 1 , column : 11 } ,
358- end : { line : 1 , column : 15 }
360+ start : { line : 1 , column : 11 , offset : 11 } ,
361+ end : { line : 1 , column : 15 , offset : 15 }
359362 } ,
360363 range : [ 11 , 15 ]
361364 }
362365 ] ,
363366 loc : {
364- start : { line : 1 , column : 3 } ,
365- end : { line : 1 , column : 16 }
367+ start : { line : 1 , column : 3 , offset : 3 } ,
368+ end : { line : 2 , column : 0 , offset : 16 }
366369 } ,
367370 range : [ 3 , 16 ]
368371 }
@@ -386,15 +389,15 @@ test('markdown -> mdast', (t) => {
386389 start : 21 ,
387390 end : 28 ,
388391 loc : {
389- start : { line : 2 , column : 5 } ,
390- end : { line : 2 , column : 12 }
392+ start : { line : 2 , column : 5 , offset : 21 } ,
393+ end : { line : 2 , column : 12 , offset : 28 }
391394 } ,
392395 range : [ 21 , 28 ]
393396 }
394397 ] ,
395398 loc : {
396- start : { line : 2 , column : 5 } ,
397- end : { line : 2 , column : 12 }
399+ start : { line : 2 , column : 5 , offset : 21 } ,
400+ end : { line : 2 , column : 12 , offset : 28 }
398401 } ,
399402 range : [ 21 , 28 ]
400403 }
0 commit comments