Revert original fix and implement fix from @1Map

This commit is contained in:
Owen Conti
2017-07-10 17:39:05 -06:00
parent 5d9ab6a0a2
commit b11399a57e
3 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, breaks: true, linkTarget: "_blank"}} <Remarkable
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
source={sanitized} source={sanitized}
></Remarkable> ></Remarkable>
</div>
} }
Markdown.propTypes = { Markdown.propTypes = {

3
src/style/_markdown.scss Normal file
View File

@@ -0,0 +1,3 @@
.markdown {
white-space: pre;
}

View File

@@ -14,4 +14,5 @@
@import 'information'; @import 'information';
@import 'authorize'; @import 'authorize';
@import 'errors'; @import 'errors';
@import 'markdown';
} }