Skip to content

Commit 59dc570

Browse files
authored
Merge pull request #3353 from owenconti/bug/3078-newlines-in-markdown
Fixes #3078 - Newlines in markdown content
2 parents 81b2aa7 + cbe1680 commit 59dc570

File tree

2 files changed

+10
-4
lines changed

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

2729
Markdown.propTypes = {

src/style/_models.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
border-radius: 4px;
8080
background: rgba(#000,.7);
8181
}
82+
83+
p {
84+
margin: 0 0 1em 0;
85+
}
8286
}
8387

8488

0 commit comments

Comments
 (0)