diff options
author | Vitaly Takmazov | 2017-12-20 15:29:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | f0831b2f9e5276fd6135f451697e4e1a12df44d7 (patch) | |
tree | a948c7dafd6b8ea19f2143c80e0b5c383a8aa210 /vnext/src/components | |
parent | aaa6a3a3e3d6c73139fd44498e034c1460ecfcae (diff) |
react-markdown
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Message.js | 3 |
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> |