Skip to content

Commit

Permalink
Update snapshots and make ExerciseCard explanation support markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjenningz committed Oct 3, 2022
1 parent 3d7616c commit d84f52e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions __tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5529,7 +5529,7 @@ exports[`Storyshots Components/ExerciseCard Basic 1`] = `
Problem
</div>
<p
className="bg-light py-3 px-4"
className="d-block bg-light py-3 px-4"
>
let a = 5
a = a + 10
Expand Down Expand Up @@ -5693,7 +5693,7 @@ exports[`Storyshots Components/ExercisePreviewCard Answered 1`] = `
Problem
</div>
<p
className="bg-light py-2 px-3"
className="d-block bg-light py-2 px-3"
>
const a = 5
a = a + 10
Expand Down Expand Up @@ -5729,7 +5729,7 @@ exports[`Storyshots Components/ExercisePreviewCard Not Answered 1`] = `
Problem
</div>
<p
className="bg-light py-2 px-3"
className="d-block bg-light py-2 px-3"
>
const a = 5
a = a + 10
Expand Down
6 changes: 4 additions & 2 deletions components/ExerciseCard/ExerciseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ const ExerciseCard = ({
>
{answer}
</Markdown>
<div className={`ms-md-3 ${styles.exerciseCard__section}`}>
<Markdown
className={`d-block ms-md-3 ${styles.exerciseCard__section}`}
>
{explanation}
</div>
</Markdown>
</div>
</>
)}
Expand Down

0 comments on commit d84f52e

Please sign in to comment.