Revert original fix and implement fix from @1Map
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, 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
3
src/style/_markdown.scss
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.markdown {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
@@ -14,4 +14,5 @@
|
|||||||
@import 'information';
|
@import 'information';
|
||||||
@import 'authorize';
|
@import 'authorize';
|
||||||
@import 'errors';
|
@import 'errors';
|
||||||
|
@import 'markdown';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user