add markdown preview for comments

This commit is contained in:
Baltazar Gomez 2019-10-12 22:04:16 -06:00 committed by Sean Yesmunt
parent 41c1392dc0
commit e6daeb7744

View file

@ -3,6 +3,7 @@ import React from 'react';
import relativeDate from 'tiny-relative-date'; import relativeDate from 'tiny-relative-date';
import Button from 'component/button'; import Button from 'component/button';
import Expandable from 'component/expandable'; import Expandable from 'component/expandable';
import MarkdownPreview from 'component/common/markdown-preview';
type Props = { type Props = {
author: string, author: string,
@ -28,7 +29,9 @@ function Comment(props: Props) {
</div> </div>
<div> <div>
<Expandable> <Expandable>
<p className={'comment__message'}>{message}</p> <div className={'comment__message'}>
<MarkdownPreview content={message} promptLinks />
</div>
</Expandable> </Expandable>
</div> </div>
</li> </li>