aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-20 15:29:25 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commitf0831b2f9e5276fd6135f451697e4e1a12df44d7 (patch)
treea948c7dafd6b8ea19f2143c80e0b5c383a8aa210 /vnext/src/components
parentaaa6a3a3e3d6c73139fd44498e034c1460ecfcae (diff)
react-markdown
Diffstat (limited to 'vnext/src/components')
-rw-r--r--vnext/src/components/Message.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index cf287ce9..ba853f5c 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -1,5 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
+import ReactMarkdown from 'react-markdown'
export default class Message extends React.Component {
render() {
@@ -25,7 +26,7 @@ export default class Message extends React.Component {
<Tags data={msg.tags || []} />
</div>
</header>
- <p>{msg.body}</p>
+ <ReactMarkdown source={msg.body}/>
{ msg.photo &&
<p className="ir"><a href={`//i.juick.com/p/${msg.mid}.${msg.attach}`} data-fname={`${msg.mid}.${msg.attach}`}>
<img itemProp="image" src={`//i.juick.com/p/${msg.mid}.${msg.attach}`} alt=""/></a>