implement new markdownPreview component

This commit is contained in:
btzr-io 2018-05-06 22:56:18 -06:00
parent 607cb6a5cd
commit 8d99c53b68

View file

@ -1,6 +1,6 @@
// @flow // @flow
import * as React from 'react'; import * as React from 'react';
import ReactMarkdown from 'react-markdown'; import MarkdownPreview from 'component/markdownPreview';
import Button from 'component/button'; import Button from 'component/button';
import path from 'path'; import path from 'path';
@ -40,11 +40,7 @@ const FileDetails = (props: Props) => {
<React.Fragment> <React.Fragment>
<div className="card__subtext-title">About</div> <div className="card__subtext-title">About</div>
<div className="card__subtext"> <div className="card__subtext">
<ReactMarkdown <MarkdownPreview content={description} />
source={description || ''}
escapeHtml
disallowedTypes={['Heading', 'HtmlInline', 'HtmlBlock']}
/>
</div> </div>
</React.Fragment> </React.Fragment>
)} )}