Revert original fix and implement fix from @1Map
This commit is contained in:
@@ -18,10 +18,12 @@ function Markdown({ source }) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <Remarkable
|
||||
options={{html: true, typographer: true, linkify: true, breaks: true, linkTarget: "_blank"}}
|
||||
return <div className="markdown">
|
||||
<Remarkable
|
||||
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||
source={sanitized}
|
||||
></Remarkable>
|
||||
</div>
|
||||
}
|
||||
|
||||
Markdown.propTypes = {
|
||||
|
||||
3
src/style/_markdown.scss
Normal file
3
src/style/_markdown.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
.markdown {
|
||||
white-space: pre;
|
||||
}
|
||||
@@ -14,4 +14,5 @@
|
||||
@import 'information';
|
||||
@import 'authorize';
|
||||
@import 'errors';
|
||||
@import 'markdown';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user