Support markdown makeup in claim description #242

Closed
longle255 wants to merge 11 commits from claim-desc-markdown-support into master
3 changed files with 6 additions and 2 deletions
Showing only changes of commit 19d3d565e5 - Show all commits

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",