@@ -169,7 +169,7 @@ test('mdast -> markdown', function (t) {
169169 { type : 'footnoteReference' , identifier : 'a' } ,
170170 { extensions : [ footnote . toMarkdown ] }
171171 ) ,
172- '[^a]' ,
172+ '[^a]\n ' ,
173173 'should serialize a footnote reference w/ identifier'
174174 )
175175
@@ -178,7 +178,7 @@ test('mdast -> markdown', function (t) {
178178 { type : 'footnoteReference' , label : 'X]Y' } ,
179179 { extensions : [ footnote . toMarkdown ] }
180180 ) ,
181- '[^X\\]Y]' ,
181+ '[^X\\]Y]\n ' ,
182182 'should serialize a footnote reference w/ label'
183183 )
184184
@@ -194,13 +194,13 @@ test('mdast -> markdown', function (t) {
194194 } ,
195195 { extensions : [ footnote . toMarkdown ] }
196196 ) ,
197- 'a[^b]c' ,
197+ 'a[^b]c\n ' ,
198198 'should serialize a footnote reference in a paragraph'
199199 )
200200
201201 t . deepEqual (
202202 toMarkdown ( { type : 'footnote' } , { extensions : [ footnote . toMarkdown ] } ) ,
203- '^[]' ,
203+ '^[]\n ' ,
204204 'should serialize an empty footnote'
205205 )
206206
@@ -209,7 +209,7 @@ test('mdast -> markdown', function (t) {
209209 { type : 'footnote' , children : [ { type : 'text' , value : 'asd' } ] } ,
210210 { extensions : [ footnote . toMarkdown ] }
211211 ) ,
212- '^[asd]' ,
212+ '^[asd]\n ' ,
213213 'should serialize a footnote'
214214 )
215215
@@ -225,7 +225,7 @@ test('mdast -> markdown', function (t) {
225225 } ,
226226 { extensions : [ footnote . toMarkdown ] }
227227 ) ,
228- 'a^[b]c' ,
228+ 'a^[b]c\n ' ,
229229 'should serialize a footnote in a paragraph'
230230 )
231231
@@ -234,7 +234,7 @@ test('mdast -> markdown', function (t) {
234234 { type : 'footnoteDefinition' , identifier : 'a' } ,
235235 { extensions : [ footnote . toMarkdown ] }
236236 ) ,
237- '[^a]:' ,
237+ '[^a]:\n ' ,
238238 'should serialize a footnote definition w/ identifier'
239239 )
240240
@@ -243,7 +243,7 @@ test('mdast -> markdown', function (t) {
243243 { type : 'footnoteDefinition' , label : 'X]Y' } ,
244244 { extensions : [ footnote . toMarkdown ] }
245245 ) ,
246- '[^X\\]Y]:' ,
246+ '[^X\\]Y]:\n ' ,
247247 'should serialize a footnote definition w/ label'
248248 )
249249
@@ -259,7 +259,7 @@ test('mdast -> markdown', function (t) {
259259 } ,
260260 { extensions : [ footnote . toMarkdown ] }
261261 ) ,
262- '[^a]: b\n c\n\n d' ,
262+ '[^a]: b\n c\n\n d\n ' ,
263263 'should serialize a footnote definition w/ content'
264264 )
265265
@@ -272,7 +272,7 @@ test('mdast -> markdown', function (t) {
272272 } ,
273273 { extensions : [ footnote . toMarkdown ] }
274274 ) ,
275- '[^a]: b' ,
275+ '[^a]: b\n ' ,
276276 'should serialize code in a footnote definition'
277277 )
278278
@@ -288,7 +288,7 @@ test('mdast -> markdown', function (t) {
288288 } ,
289289 { extensions : [ footnote . toMarkdown ] }
290290 ) ,
291- '[^a]: b\n\n c' ,
291+ '[^a]: b\n\n c\n ' ,
292292 'should serialize code as the 2nd child in a footnote definition'
293293 )
294294
@@ -297,7 +297,7 @@ test('mdast -> markdown', function (t) {
297297 { type : 'paragraph' , children : [ { type : 'text' , value : 'b^[a]' } ] } ,
298298 { extensions : [ footnote . toMarkdown ] }
299299 ) ,
300- 'b^\\[a]' ,
300+ 'b^\\[a]\n ' ,
301301 'should escape what would otherwise be an inline note'
302302 )
303303
@@ -306,7 +306,7 @@ test('mdast -> markdown', function (t) {
306306 { type : 'paragraph' , children : [ { type : 'text' , value : 'b[^a]' } ] } ,
307307 { extensions : [ footnote . toMarkdown ] }
308308 ) ,
309- 'b\\[^a]' ,
309+ 'b\\[^a]\n ' ,
310310 'should escape what would otherwise be an footnote call'
311311 )
312312
@@ -315,7 +315,7 @@ test('mdast -> markdown', function (t) {
315315 { type : 'paragraph' , children : [ { type : 'text' , value : '[a]: b' } ] } ,
316316 { extensions : [ footnote . toMarkdown ] }
317317 ) ,
318- '\\[a]: b' ,
318+ '\\[a]: b\n ' ,
319319 'should escape what would otherwise be an footnote definition'
320320 )
321321
0 commit comments