Skip to content

Commit 6e3a6a3

Browse files
authored
Merge pull request #1608 from ShubhamParkhi/dev
Fix(web): Evidence render markdown
2 parents 61b500e + cd55212 commit 6e3a6a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

web/src/components/EvidenceCard.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import styled, { css } from "styled-components";
33

44
import Identicon from "react-identicons";
5+
import ReactMarkdown from "react-markdown";
56

67
import { Card } from "@kleros/ui-components-library";
78

@@ -35,6 +36,12 @@ const Index = styled.p`
3536
display: inline-block;
3637
`;
3738

39+
const StyledReactMarkdown = styled(ReactMarkdown)`
40+
a {
41+
font-size: 16px;
42+
}
43+
`;
44+
3845
const BottomShade = styled.div`
3946
background-color: ${({ theme }) => theme.lightBlue};
4047
display: flex;
@@ -119,7 +126,7 @@ const EvidenceCard: React.FC<IEvidenceCard> = ({ evidence, sender, index }) => {
119126
{data ? (
120127
<>
121128
<h3>{data.name}</h3>
122-
<p>{data.description}</p>
129+
<StyledReactMarkdown>{data.description}</StyledReactMarkdown>
123130
</>
124131
) : (
125132
<p>{evidence}</p>

0 commit comments

Comments
 (0)