Skip to content

Commit b11399a

Browse files
committed
Revert original fix and implement fix from @1Map
1 parent 5d9ab6a commit b11399a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/core/components/providers/markdown.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ function Markdown({ source }) {
1818
return null
1919
}
2020

21-
return <Remarkable
22-
options={{html: true, typographer: true, linkify: true, breaks: true, linkTarget: "_blank"}}
23-
source={sanitized}
24-
></Remarkable>
21+
return <div className="markdown">
22+
<Remarkable
23+
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
24+
source={sanitized}
25+
></Remarkable>
26+
</div>
2527
}
2628

2729
Markdown.propTypes = {

src/style/_markdown.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.markdown {
2+
white-space: pre;
3+
}

src/style/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
@import 'information';
1515
@import 'authorize';
1616
@import 'errors';
17+
@import 'markdown';
1718
}

0 commit comments

Comments
 (0)