@@ -175,6 +175,7 @@ test('mdast -> markdown', (t) => {
175
175
176
176
t . deepEqual (
177
177
toMarkdown (
178
+ // @ts -expect-error: `identifier` missing.
178
179
{ type : 'footnoteReference' , label : 'X]Y' } ,
179
180
{ extensions : [ footnoteToMarkdown ] }
180
181
) ,
@@ -188,7 +189,7 @@ test('mdast -> markdown', (t) => {
188
189
type : 'paragraph' ,
189
190
children : [
190
191
{ type : 'text' , value : 'a' } ,
191
- { type : 'footnoteReference' , label : 'b' } ,
192
+ { type : 'footnoteReference' , label : 'b' , identifier : 'b' } ,
192
193
{ type : 'text' , value : 'c' }
193
194
]
194
195
} ,
@@ -199,6 +200,7 @@ test('mdast -> markdown', (t) => {
199
200
)
200
201
201
202
t . deepEqual (
203
+ // @ts -expect-error: `children` missing.
202
204
toMarkdown ( { type : 'footnote' } , { extensions : [ footnoteToMarkdown ] } ) ,
203
205
'^[]\n' ,
204
206
'should serialize an empty footnote'
@@ -231,6 +233,7 @@ test('mdast -> markdown', (t) => {
231
233
232
234
t . deepEqual (
233
235
toMarkdown (
236
+ // @ts -expect-error: `children` missing.
234
237
{ type : 'footnoteDefinition' , identifier : 'a' } ,
235
238
{ extensions : [ footnoteToMarkdown ] }
236
239
) ,
@@ -240,6 +243,7 @@ test('mdast -> markdown', (t) => {
240
243
241
244
t . deepEqual (
242
245
toMarkdown (
246
+ // @ts -expect-error: `identifier` missing.
243
247
{ type : 'footnoteDefinition' , label : 'X]Y' } ,
244
248
{ extensions : [ footnoteToMarkdown ] }
245
249
) ,
@@ -252,6 +256,7 @@ test('mdast -> markdown', (t) => {
252
256
{
253
257
type : 'footnoteDefinition' ,
254
258
label : 'a' ,
259
+ identifier : 'a' ,
255
260
children : [
256
261
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b\nc' } ] } ,
257
262
{ type : 'paragraph' , children : [ { type : 'text' , value : 'd' } ] }
@@ -268,6 +273,7 @@ test('mdast -> markdown', (t) => {
268
273
{
269
274
type : 'footnoteDefinition' ,
270
275
label : 'a' ,
276
+ identifier : 'a' ,
271
277
children : [ { type : 'code' , value : 'b' } ]
272
278
} ,
273
279
{ extensions : [ footnoteToMarkdown ] }
@@ -281,6 +287,7 @@ test('mdast -> markdown', (t) => {
281
287
{
282
288
type : 'footnoteDefinition' ,
283
289
label : 'a' ,
290
+ identifier : 'a' ,
284
291
children : [
285
292
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b' } ] } ,
286
293
{ type : 'code' , value : 'c' }
0 commit comments