Merge pull request #3353 from owenconti/bug/3078-newlines-in-markdown
Fixes #3078 - Newlines in markdown content
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -79,6 +79,10 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: rgba(#000,.7);
|
background: rgba(#000,.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0 0 1em 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user