@@ -255,23 +255,26 @@ test('markdown -> mdast', (t) => {
255
255
end : 2 ,
256
256
name : 'a' ,
257
257
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 }
260
260
} ,
261
261
range : [ 1 , 2 ]
262
262
} ,
263
263
start : 1 ,
264
264
end : 2 ,
265
265
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 }
268
268
} ,
269
269
range : [ 1 , 2 ]
270
270
}
271
271
] ,
272
272
sourceType : 'module' ,
273
273
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
+ } ,
275
278
range : [ 1 , 2 ]
276
279
}
277
280
}
@@ -321,16 +324,16 @@ test('markdown -> mdast', (t) => {
321
324
end : 10 ,
322
325
name : 'c' ,
323
326
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 }
326
329
} ,
327
330
range : [ 9 , 10 ]
328
331
} ,
329
332
start : 3 ,
330
333
end : 16 ,
331
334
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 }
334
337
} ,
335
338
range : [ 3 , 16 ]
336
339
}
@@ -343,8 +346,8 @@ test('markdown -> mdast', (t) => {
343
346
start : 3 ,
344
347
end : 8 ,
345
348
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 }
348
351
} ,
349
352
range : [ 3 , 8 ]
350
353
} ,
@@ -354,15 +357,15 @@ test('markdown -> mdast', (t) => {
354
357
start : 11 ,
355
358
end : 15 ,
356
359
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 }
359
362
} ,
360
363
range : [ 11 , 15 ]
361
364
}
362
365
] ,
363
366
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 }
366
369
} ,
367
370
range : [ 3 , 16 ]
368
371
}
@@ -386,15 +389,15 @@ test('markdown -> mdast', (t) => {
386
389
start : 21 ,
387
390
end : 28 ,
388
391
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 }
391
394
} ,
392
395
range : [ 21 , 28 ]
393
396
}
394
397
] ,
395
398
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 }
398
401
} ,
399
402
range : [ 21 , 28 ]
400
403
}
0 commit comments