implement new markdownPreview component
This commit is contained in:
parent
607cb6a5cd
commit
8d99c53b68
1 changed files with 2 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import MarkdownPreview from 'component/markdownPreview';
|
||||
import Button from 'component/button';
|
||||
import path from 'path';
|
||||
|
||||
|
@ -40,11 +40,7 @@ const FileDetails = (props: Props) => {
|
|||
<React.Fragment>
|
||||
<div className="card__subtext-title">About</div>
|
||||
<div className="card__subtext">
|
||||
<ReactMarkdown
|
||||
source={description || ''}
|
||||
escapeHtml
|
||||
disallowedTypes={['Heading', 'HtmlInline', 'HtmlBlock']}
|
||||
/>
|
||||
<MarkdownPreview content={description} />
|
||||
</div>
|
||||
</React.Fragment>
|
||||
)}
|
||||
|
|
Loading…
Reference in a new issue