Skip to content

Commit 5b9f504

Browse files
authored
Merge pull request #2840 from flacial/2819-challenge-code-blocks-are-not-highlighted
Highlight challenge codeblock and inline-code
2 parents f32f02c + a9d0db0 commit 5b9f504

File tree

5 files changed

+647
-25
lines changed

5 files changed

+647
-25
lines changed

__tests__/__snapshots__/storyshots.test.js.snap

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ exports[`Storyshots Components/ChallengeMaterial Basic 1`] = `
24192419
Greater than 5
24202420
</h1>
24212421
<div
2422-
className="bg-light p-3 mt-3"
2422+
className="pt-3 pb-3 mt-3"
24232423
data-testid="challenge-question-description"
24242424
>
24252425
<span>
@@ -2628,7 +2628,7 @@ exports[`Storyshots Components/ChallengeMaterial With Comments 1`] = `
26282628
Sum of 2 Numbers
26292629
</h1>
26302630
<div
2631-
className="bg-light p-3 mt-3"
2631+
className="pt-3 pb-3 mt-3"
26322632
data-testid="challenge-question-description"
26332633
>
26342634
<span>
@@ -3500,7 +3500,7 @@ exports[`Storyshots Components/ChallengeMaterial With Diff 1`] = `
35003500
Greater than 5
35013501
</h1>
35023502
<div
3503-
className="bg-light p-3 mt-3"
3503+
className="pt-3 pb-3 mt-3"
35043504
data-testid="challenge-question-description"
35053505
>
35063506
<span>
@@ -4325,7 +4325,7 @@ exports[`Storyshots Components/ChallengeQuestionCard Basic 1`] = `
43254325
Greater than 5
43264326
</h1>
43274327
<div
4328-
className="bg-light p-3 mt-3"
4328+
className="pt-3 pb-3 mt-3"
43294329
data-testid="challenge-question-description"
43304330
>
43314331
<span>
@@ -30484,7 +30484,10 @@ exports[`Storyshots mdx/Codeblock Component 1`] = `
3048430484
style={
3048530485
Object {
3048630486
"backgroundColor": "#f7f6f3",
30487+
"borderRadius": 4,
3048730488
"color": "rgb(36, 41, 46)",
30489+
"fontSize": 14,
30490+
"marginBlock": 20,
3048830491
"marginBottom": 0,
3048930492
"padding": "20px 20px 0 20px",
3049030493
}

0 commit comments

Comments
 (0)