Skip to content

Commit 1238360

Browse files
committed
chore: Update snapshots after latest jest and prismjs
1 parent 980aa7c commit 1238360

File tree

1 file changed

+63
-35
lines changed

1 file changed

+63
-35
lines changed

src/__tests__/__snapshots__/Markdown.tsx.snap

+63-35
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`Markdown should be able to highlight code with the highlightCode option 1`] = `
44
<div>
5+
56
<pre
67
class="language-markup"
78
>
@@ -37,23 +38,24 @@ exports[`Markdown should be able to highlight code with the highlightCode option
3738

3839
exports[`Markdown should be able to highlight code with the highlightElement option 1`] = `
3940
<div>
41+
4042
<pre
41-
class=" language-none"
43+
class="language-none"
4244
tabindex="0"
4345
>
4446
<code
45-
class=" language-none"
47+
class="language-none"
4648
>
4749
const x = "y";
4850
</code>
4951
</pre>
5052
5153
<pre
52-
class=" language-sh"
54+
class="language-sh"
5355
tabindex="0"
5456
>
5557
<code
56-
class=" language-sh"
58+
class="language-sh"
5759
>
5860
yarn add some-package
5961
</code>
@@ -63,6 +65,7 @@ exports[`Markdown should be able to highlight code with the highlightElement opt
6365

6466
exports[`Markdown should be able to render all six heading types with or without ids 1`] = `
6567
<div>
68+
6669
<h1
6770
id="heading-1"
6871
>
@@ -98,6 +101,7 @@ exports[`Markdown should be able to render all six heading types with or without
98101

99102
exports[`Markdown should be able to render all six heading types with or without ids 2`] = `
100103
<div>
104+
101105
<h1>
102106
Heading 1
103107
</h1>
@@ -121,6 +125,7 @@ exports[`Markdown should be able to render all six heading types with or without
121125

122126
exports[`Markdown should be able to render blockquotes 1`] = `
123127
<div>
128+
124129
<blockquote>
125130
<p>
126131
This is text in a blockquote
@@ -131,6 +136,7 @@ exports[`Markdown should be able to render blockquotes 1`] = `
131136

132137
exports[`Markdown should be able to render breaks (<br>) 1`] = `
133138
<div>
139+
134140
<p>
135141
Trailing two spaces to force break
136142
<br />
@@ -159,6 +165,7 @@ exports[`Markdown should be able to render breaks (<br>) 1`] = `
159165
160166
exports[`Markdown should be able to render code blocks with or without languages 1`] = `
161167
<div>
168+
162169
<pre>
163170
<code>
164171
const x = "y";
@@ -179,6 +186,7 @@ exports[`Markdown should be able to render code blocks with or without languages
179186
180187
exports[`Markdown should be able to render emphasis (italic) text 1`] = `
181188
<div>
189+
182190
<p>
183191
<em>
184192
Using Single Underscore
@@ -195,6 +203,7 @@ exports[`Markdown should be able to render emphasis (italic) text 1`] = `
195203
196204
exports[`Markdown should be able to render escaped (backslash-prefixed) text 1`] = `
197205
<div>
206+
198207
<p>
199208
Here is some
200209
\\*
@@ -207,6 +216,7 @@ exports[`Markdown should be able to render escaped (backslash-prefixed) text 1`]
207216
208217
exports[`Markdown should be able to render h1 elements with equal signs 1`] = `
209218
<div>
219+
210220
<h1
211221
id="three-equals"
212222
>
@@ -222,6 +232,7 @@ exports[`Markdown should be able to render h1 elements with equal signs 1`] = `
222232
223233
exports[`Markdown should be able to render h2 elements with hyphens 1`] = `
224234
<div>
235+
225236
<h2
226237
id="three-hyphens"
227238
>
@@ -237,6 +248,7 @@ exports[`Markdown should be able to render h2 elements with hyphens 1`] = `
237248
238249
exports[`Markdown should be able to render horizontal rules and <br /> tags 1`] = `
239250
<div>
251+
240252
<p>
241253
Text Above HR
242254
</p>
@@ -250,6 +262,7 @@ exports[`Markdown should be able to render horizontal rules and <br /> tags 1`]
250262
251263
exports[`Markdown should be able to render images 1`] = `
252264
<div>
265+
253266
<p>
254267
<img
255268
alt=""
@@ -286,6 +299,7 @@ exports[`Markdown should be able to render images 1`] = `
286299
287300
exports[`Markdown should be able to render inline code 1`] = `
288301
<div>
302+
289303
<p>
290304
This has some
291305
<code>
@@ -298,6 +312,7 @@ exports[`Markdown should be able to render inline code 1`] = `
298312
299313
exports[`Markdown should be able to render inline code that has html entities 1`] = `
300314
<div>
315+
301316
<p>
302317
This has some
303318
<code>
@@ -352,6 +367,7 @@ exports[`Markdown should be able to render inline code that has html entities 1`
352367
353368
exports[`Markdown should be able to render links that reference specific ids 1`] = `
354369
<div>
370+
355371
<p>
356372
<a
357373
href="#heading-1"
@@ -372,6 +388,7 @@ exports[`Markdown should be able to render links that reference specific ids 1`]
372388
373389
exports[`Markdown should be able to render links with or without references 1`] = `
374390
<div>
391+
375392
<p>
376393
Automatically
377394
<a
@@ -424,6 +441,7 @@ exports[`Markdown should be able to render links with or without references 1`]
424441
425442
exports[`Markdown should be able to render nested blockquotes 1`] = `
426443
<div>
444+
427445
<blockquote>
428446
<p>
429447
Root Blockquote
@@ -439,6 +457,7 @@ exports[`Markdown should be able to render nested blockquotes 1`] = `
439457
440458
exports[`Markdown should be able to render nested lists 1`] = `
441459
<div>
460+
442461
<ol>
443462
<li>
444463
Ordered Item 1
@@ -467,6 +486,7 @@ exports[`Markdown should be able to render nested lists 1`] = `
467486
468487
exports[`Markdown should be able to render ordered lists 1`] = `
469488
<div>
489+
470490
<ol>
471491
<li>
472492
Ordered Item 1
@@ -483,6 +503,7 @@ exports[`Markdown should be able to render ordered lists 1`] = `
483503
484504
exports[`Markdown should be able to render strikethrough (deleted) text 1`] = `
485505
<div>
506+
486507
<p>
487508
<del>
488509
This text has strikethroughs
@@ -493,6 +514,7 @@ exports[`Markdown should be able to render strikethrough (deleted) text 1`] = `
493514
494515
exports[`Markdown should be able to render strong (bold) text 1`] = `
495516
<div>
517+
496518
<p>
497519
<strong>
498520
Using Double Underscore
@@ -510,6 +532,7 @@ exports[`Markdown should be able to render strong (bold) text 1`] = `
510532
511533
exports[`Markdown should be able to render tables 1`] = `
512534
<div>
535+
513536
<table>
514537
<thead>
515538
<tr>
@@ -575,6 +598,7 @@ exports[`Markdown should be able to render tables 1`] = `
575598
576599
exports[`Markdown should be able to render tables with complex markdown 1`] = `
577600
<div>
601+
578602
<table>
579603
<thead>
580604
<tr>
@@ -675,6 +699,7 @@ exports[`Markdown should be able to render tables with complex markdown 1`] = `
675699
676700
exports[`Markdown should be able to render task lists 1`] = `
677701
<div>
702+
678703
<ul>
679704
<li>
680705
<input
@@ -717,6 +742,7 @@ exports[`Markdown should be able to render task lists 1`] = `
717742
718743
exports[`Markdown should be able to render text that combines emphasis, strong, and strikethrough text 1`] = `
719744
<div>
745+
720746
<p>
721747
<em>
722748
<strong>
@@ -779,6 +805,7 @@ exports[`Markdown should be able to render text that combines emphasis, strong,
779805
780806
exports[`Markdown should be able to render unordered lists 1`] = `
781807
<div>
808+
782809
<ul>
783810
<li>
784811
Item 1
@@ -1137,11 +1164,11 @@ exports[`custom renderer should be able to use a custom renderer 1`] = `
11371164
</p>
11381165
11391166
<pre
1140-
class=" language-bash"
1167+
class="language-bash"
11411168
tabindex="0"
11421169
>
11431170
<code
1144-
class=" language-bash"
1171+
class="language-bash"
11451172
>
11461173
<span
11471174
class="token function"
@@ -1165,11 +1192,11 @@ exports[`custom renderer should be able to use a custom renderer 1`] = `
11651192
</p>
11661193
11671194
<pre
1168-
class=" language-bash"
1195+
class="language-bash"
11691196
tabindex="0"
11701197
>
11711198
<code
1172-
class=" language-bash"
1199+
class="language-bash"
11731200
>
11741201
<span
11751202
class="token function"
@@ -1193,11 +1220,11 @@ exports[`custom renderer should be able to use a custom renderer 1`] = `
11931220
</p>
11941221
11951222
<pre
1196-
class=" language-tsx"
1223+
class="language-tsx"
11971224
tabindex="0"
11981225
>
11991226
<code
1200-
class=" language-tsx"
1227+
class="language-tsx"
12011228
>
12021229
<span
12031230
class="token comment"
@@ -1236,34 +1263,30 @@ exports[`custom renderer should be able to use a custom renderer 1`] = `
12361263
(
12371264
</span>
12381265
<span
1239-
class="token parameter"
1266+
class="token punctuation"
12401267
>
1241-
<span
1242-
class="token punctuation"
1243-
>
1244-
{
1245-
</span>
1246-
1268+
{
1269+
</span>
1270+
12471271
children
1248-
<span
1249-
class="token punctuation"
1250-
>
1251-
,
1252-
</span>
1253-
1272+
<span
1273+
class="token punctuation"
1274+
>
1275+
,
1276+
</span>
1277+
12541278
1255-
<span
1256-
class="token punctuation"
1257-
>
1258-
}
1259-
</span>
1260-
<span
1261-
class="token operator"
1262-
>
1263-
:
1264-
</span>
1265-
ListItemRendererProps
1279+
<span
1280+
class="token punctuation"
1281+
>
1282+
}
12661283
</span>
1284+
<span
1285+
class="token operator"
1286+
>
1287+
:
1288+
</span>
1289+
ListItemRendererProps
12671290
<span
12681291
class="token punctuation"
12691292
>
@@ -1354,10 +1377,15 @@ exports[`custom renderer should be able to use a custom renderer 1`] = `
13541377
</div>
13551378
`;
13561379
1357-
exports[`html support should not be able to render foldable text (details) 1`] = `<div />`;
1380+
exports[`html support should not be able to render foldable text (details) 1`] = `
1381+
<div>
1382+
1383+
</div>
1384+
`;
13581385
13591386
exports[`html support should not be able to render tags? 1`] = `
13601387
<div>
1388+
13611389
<h1
13621390
id="heading--text"
13631391
>

0 commit comments

Comments
 (0)