diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-03 03:49:26 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-03 03:49:26 +0300 |
commit | badd3517cd11a68d70fa6ba7cdb1e5afaaf79310 (patch) | |
tree | 76787e2e2f2e4418be9b570ae7447e0b51097bcd | |
parent | e491abb55723ab20a36ead83320e40627cca8e06 (diff) | |
download | react-benzin-badd3517cd11a68d70fa6ba7cdb1e5afaaf79310.tar.gz |
feat: add linebreaks
-rw-r--r-- | src/lib/Markdown/Markdown.tsx | 2 |
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>; } |