@@ -136,79 +136,61 @@ test('mdast -> markdown', function (t) {
136136 } ,
137137 { extensions : [ autolinkLiterals . toMarkdown ] }
138138 ) ,
139- 'a <contact@example.com> c.' ,
139+ 'a <contact@example.com> c.\n ' ,
140140 'should not serialize autolink literals'
141141 )
142142
143143 t . deepEqual (
144144 toMarkdown (
145- {
146- type : 'paragraph' ,
147- children : [ { type : 'text' , value : 'a b@c.d' } ]
148- } ,
145+ { type : 'paragraph' , children : [ { type : 'text' , value : 'a b@c.d' } ] } ,
149146 { extensions : [ autolinkLiterals . toMarkdown ] }
150147 ) ,
151- 'a b\\@c.d' ,
148+ 'a b\\@c.d\n ' ,
152149 'should escape at signs if they appear in what looks like an email'
153150 )
154151
155152 t . deepEqual (
156153 toMarkdown (
157- {
158- type : 'paragraph' ,
159- children : [ { type : 'text' , value : 'a @c' } ]
160- } ,
154+ { type : 'paragraph' , children : [ { type : 'text' , value : 'a @c' } ] } ,
161155 { extensions : [ autolinkLiterals . toMarkdown ] }
162156 ) ,
163- 'a @c' ,
157+ 'a @c\n ' ,
164158 'should not escape at signs if they appear in what can’t be an email'
165159 )
166160
167161 t . deepEqual (
168162 toMarkdown (
169- {
170- type : 'paragraph' ,
171- children : [ { type : 'text' , value : 'a www.b.c' } ]
172- } ,
163+ { type : 'paragraph' , children : [ { type : 'text' , value : 'a www.b.c' } ] } ,
173164 { extensions : [ autolinkLiterals . toMarkdown ] }
174165 ) ,
175- 'a www\\.b.c' ,
166+ 'a www\\.b.c\n ' ,
176167 'should escape dots if they appear in what looks like a domain'
177168 )
178169
179170 t . deepEqual (
180171 toMarkdown (
181- {
182- type : 'paragraph' ,
183- children : [ { type : 'text' , value : 'a.b' } ]
184- } ,
172+ { type : 'paragraph' , children : [ { type : 'text' , value : 'a.b' } ] } ,
185173 { extensions : [ autolinkLiterals . toMarkdown ] }
186174 ) ,
187- 'a.b' ,
175+ 'a.b\n ' ,
188176 'should not escape dots if they appear in what can’t be a domain'
189177 )
190178
191179 t . deepEqual (
192180 toMarkdown (
193- {
194- type : 'paragraph' ,
195- children : [ { type : 'text' , value : 'https:/' } ]
196- } ,
181+ { type : 'paragraph' , children : [ { type : 'text' , value : 'https:/' } ] } ,
197182 { extensions : [ autolinkLiterals . toMarkdown ] }
198183 ) ,
199- 'https\\:/' ,
184+ 'https\\:/\n ' ,
200185 'should escape colons if they appear in what looks like a http protocol'
201186 )
202187
203188 t . deepEqual (
204189 toMarkdown (
205- {
206- type : 'paragraph' ,
207- children : [ { type : 'text' , value : 'https:a' } ]
208- } ,
190+ { type : 'paragraph' , children : [ { type : 'text' , value : 'https:a' } ] } ,
209191 { extensions : [ autolinkLiterals . toMarkdown ] }
210192 ) ,
211- 'https:a' ,
193+ 'https:a\n ' ,
212194 'should not escape colons if they appear in what can’t be a http protocol'
213195 )
214196
0 commit comments