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:
parent
de2e4e8fae
commit
feed5dd2d1
@ -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>
|
||||||
/>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user