@@ -169,7 +169,7 @@ test('mdast -> markdown', function (t) {
169
169
{ type : 'footnoteReference' , identifier : 'a' } ,
170
170
{ extensions : [ footnote . toMarkdown ] }
171
171
) ,
172
- '[^a]' ,
172
+ '[^a]\n ' ,
173
173
'should serialize a footnote reference w/ identifier'
174
174
)
175
175
@@ -178,7 +178,7 @@ test('mdast -> markdown', function (t) {
178
178
{ type : 'footnoteReference' , label : 'X]Y' } ,
179
179
{ extensions : [ footnote . toMarkdown ] }
180
180
) ,
181
- '[^X\\]Y]' ,
181
+ '[^X\\]Y]\n ' ,
182
182
'should serialize a footnote reference w/ label'
183
183
)
184
184
@@ -194,13 +194,13 @@ test('mdast -> markdown', function (t) {
194
194
} ,
195
195
{ extensions : [ footnote . toMarkdown ] }
196
196
) ,
197
- 'a[^b]c' ,
197
+ 'a[^b]c\n ' ,
198
198
'should serialize a footnote reference in a paragraph'
199
199
)
200
200
201
201
t . deepEqual (
202
202
toMarkdown ( { type : 'footnote' } , { extensions : [ footnote . toMarkdown ] } ) ,
203
- '^[]' ,
203
+ '^[]\n ' ,
204
204
'should serialize an empty footnote'
205
205
)
206
206
@@ -209,7 +209,7 @@ test('mdast -> markdown', function (t) {
209
209
{ type : 'footnote' , children : [ { type : 'text' , value : 'asd' } ] } ,
210
210
{ extensions : [ footnote . toMarkdown ] }
211
211
) ,
212
- '^[asd]' ,
212
+ '^[asd]\n ' ,
213
213
'should serialize a footnote'
214
214
)
215
215
@@ -225,7 +225,7 @@ test('mdast -> markdown', function (t) {
225
225
} ,
226
226
{ extensions : [ footnote . toMarkdown ] }
227
227
) ,
228
- 'a^[b]c' ,
228
+ 'a^[b]c\n ' ,
229
229
'should serialize a footnote in a paragraph'
230
230
)
231
231
@@ -234,7 +234,7 @@ test('mdast -> markdown', function (t) {
234
234
{ type : 'footnoteDefinition' , identifier : 'a' } ,
235
235
{ extensions : [ footnote . toMarkdown ] }
236
236
) ,
237
- '[^a]:' ,
237
+ '[^a]:\n ' ,
238
238
'should serialize a footnote definition w/ identifier'
239
239
)
240
240
@@ -243,7 +243,7 @@ test('mdast -> markdown', function (t) {
243
243
{ type : 'footnoteDefinition' , label : 'X]Y' } ,
244
244
{ extensions : [ footnote . toMarkdown ] }
245
245
) ,
246
- '[^X\\]Y]:' ,
246
+ '[^X\\]Y]:\n ' ,
247
247
'should serialize a footnote definition w/ label'
248
248
)
249
249
@@ -259,7 +259,7 @@ test('mdast -> markdown', function (t) {
259
259
} ,
260
260
{ extensions : [ footnote . toMarkdown ] }
261
261
) ,
262
- '[^a]: b\n c\n\n d' ,
262
+ '[^a]: b\n c\n\n d\n ' ,
263
263
'should serialize a footnote definition w/ content'
264
264
)
265
265
@@ -272,7 +272,7 @@ test('mdast -> markdown', function (t) {
272
272
} ,
273
273
{ extensions : [ footnote . toMarkdown ] }
274
274
) ,
275
- '[^a]: b' ,
275
+ '[^a]: b\n ' ,
276
276
'should serialize code in a footnote definition'
277
277
)
278
278
@@ -288,7 +288,7 @@ test('mdast -> markdown', function (t) {
288
288
} ,
289
289
{ extensions : [ footnote . toMarkdown ] }
290
290
) ,
291
- '[^a]: b\n\n c' ,
291
+ '[^a]: b\n\n c\n ' ,
292
292
'should serialize code as the 2nd child in a footnote definition'
293
293
)
294
294
@@ -297,7 +297,7 @@ test('mdast -> markdown', function (t) {
297
297
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b^[a]' } ] } ,
298
298
{ extensions : [ footnote . toMarkdown ] }
299
299
) ,
300
- 'b^\\[a]' ,
300
+ 'b^\\[a]\n ' ,
301
301
'should escape what would otherwise be an inline note'
302
302
)
303
303
@@ -306,7 +306,7 @@ test('mdast -> markdown', function (t) {
306
306
{ type : 'paragraph' , children : [ { type : 'text' , value : 'b[^a]' } ] } ,
307
307
{ extensions : [ footnote . toMarkdown ] }
308
308
) ,
309
- 'b\\[^a]' ,
309
+ 'b\\[^a]\n ' ,
310
310
'should escape what would otherwise be an footnote call'
311
311
)
312
312
@@ -315,7 +315,7 @@ test('mdast -> markdown', function (t) {
315
315
{ type : 'paragraph' , children : [ { type : 'text' , value : '[a]: b' } ] } ,
316
316
{ extensions : [ footnote . toMarkdown ] }
317
317
) ,
318
- '\\[a]: b' ,
318
+ '\\[a]: b\n ' ,
319
319
'should escape what would otherwise be an footnote definition'
320
320
)
321
321
0 commit comments