Skip to content

Commit 21d83dd

Browse files
committed
Update dev-dependencies
1 parent 712e543 commit 21d83dd

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dependencies": {},
3838
"devDependencies": {
3939
"mdast-util-from-markdown": "^0.7.0",
40-
"mdast-util-to-markdown": "^0.3.0",
40+
"mdast-util-to-markdown": "^0.4.0",
4141
"micromark-extension-gfm-autolink-literal": "^0.5.0",
4242
"nyc": "^15.0.0",
4343
"prettier": "^2.0.0",

test.js

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -136,79 +136,61 @@ test('mdast -> markdown', function (t) {
136136
},
137137
{extensions: [autolinkLiterals.toMarkdown]}
138138
),
139-
139+
'a <[email protected]> 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 [email protected]'}]
148-
},
145+
{type: 'paragraph', children: [{type: 'text', value: 'a [email protected]'}]},
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

Comments
 (0)