Support markdown makeup in claim description

This commit is contained in:
Le Long 2017-06-15 21:30:56 +02:00
parent dd444744ad
commit 19d3d565e5
3 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
## [Unreleased]
### Added
*
* Support markdown makeup in claim description
*
### Changed

View file

@ -1,4 +1,5 @@
import React from "react";
import ReactMarkdown from "react-markdown";
import lbry from "lbry.js";
import lbryuri from "lbryuri.js";
import Video from "component/video";
@ -121,7 +122,9 @@ class FilePage extends React.PureComponent {
</div>
</div>
<div className="card__content card__subtext card__subtext card__subtext--allow-newlines">
{metadata && metadata.description}
<ReactMarkdown
source={(metadata && metadata.description) || ""}
/>
</div>
</div>
{metadata

View file

@ -31,6 +31,7 @@
"rc-progress": "^2.0.6",
"react": "^15.4.0",
"react-dom": "^15.4.0",
"react-markdown": "^2.5.0",
"react-modal": "^1.5.2",
"react-redux": "^5.0.3",
"redux": "^3.6.0",