Merge pull request #3353 from owenconti/bug/3078-newlines-in-markdown

Fixes #3078 - Newlines in markdown content
This commit is contained in:
shockey
2017-07-14 17:36:06 -07:00
committed by GitHub
2 changed files with 10 additions and 4 deletions

View File

@@ -18,10 +18,12 @@ function Markdown({ source }) {
return null return null
} }
return <Remarkable return <div className="markdown">
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}} <Remarkable
options={{html: true, typographer: true, breaks: true, linkify: true, linkTarget: "_blank"}}
source={sanitized} source={sanitized}
></Remarkable> ></Remarkable>
</div>
} }
Markdown.propTypes = { Markdown.propTypes = {

View File

@@ -79,6 +79,10 @@
border-radius: 4px; border-radius: 4px;
background: rgba(#000,.7); background: rgba(#000,.7);
} }
p {
margin: 0 0 1em 0;
}
} }