1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

react-markdown code updates

This commit is contained in:
Matthias Kretschmann 2021-05-20 00:44:37 +02:00
parent de2e4e8fae
commit feed5dd2d1
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -13,10 +13,9 @@ const Markdown = ({
// https://github.com/rexxars/react-markdown/issues/105#issuecomment-351585313 // https://github.com/rexxars/react-markdown/issues/105#issuecomment-351585313
const textCleaned = text?.replace(/\\n/g, '\n ') const textCleaned = text?.replace(/\\n/g, '\n ')
return ( return (
<ReactMarkdown <ReactMarkdown className={`${styles.markdown} ${className}`}>
source={textCleaned} {textCleaned}
className={`${styles.markdown} ${className}`} </ReactMarkdown>
/>
) )
} }