aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-04-03 03:49:26 +0300
committereug-vs <eug-vs@keemail.me>2020-04-03 03:49:26 +0300
commitbadd3517cd11a68d70fa6ba7cdb1e5afaaf79310 (patch)
tree76787e2e2f2e4418be9b570ae7447e0b51097bcd
parente491abb55723ab20a36ead83320e40627cca8e06 (diff)
downloadreact-benzin-badd3517cd11a68d70fa6ba7cdb1e5afaaf79310.tar.gz
feat: add linebreaks
-rw-r--r--src/lib/Markdown/Markdown.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Markdown/Markdown.tsx b/src/lib/Markdown/Markdown.tsx
index b3119f1..332d08c 100644
--- a/src/lib/Markdown/Markdown.tsx
+++ b/src/lib/Markdown/Markdown.tsx
@@ -19,7 +19,7 @@ const header = (level: number): string => {
}
const Content: React.FC<RawLinesPropType> = ({ rawLines }) => {
- const plainText = rawLines.join();
+ const plainText = rawLines.map(line => <p> {line} </p>);
return <p> {plainText} </p>;
}