add markdown preview for comments
This commit is contained in:
parent
41c1392dc0
commit
e6daeb7744
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@ import React from 'react';
|
|||
import relativeDate from 'tiny-relative-date';
|
||||
import Button from 'component/button';
|
||||
import Expandable from 'component/expandable';
|
||||
import MarkdownPreview from 'component/common/markdown-preview';
|
||||
|
||||
type Props = {
|
||||
author: string,
|
||||
|
@ -28,7 +29,9 @@ function Comment(props: Props) {
|
|||
</div>
|
||||
<div>
|
||||
<Expandable>
|
||||
<p className={'comment__message'}>{message}</p>
|
||||
<div className={'comment__message'}>
|
||||
<MarkdownPreview content={message} promptLinks />
|
||||
</div>
|
||||
</Expandable>
|
||||
</div>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Reference in a new issue