diff options
author | eug-vs <eug-vs@keemail.me> | 2020-04-07 15:31:00 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-04-07 15:31:00 +0300 |
commit | 5c259810433be8cdbe6fcac8776cdbf4a0c244b0 (patch) | |
tree | 2f9e1ba87aba5740ed913457861c6f6c1f52d09c /src/lib/Markdown/Markdown.tsx | |
parent | 400330fe5ebd6951a97f07b6147b3af6113e034f (diff) | |
download | react-benzin-5c259810433be8cdbe6fcac8776cdbf4a0c244b0.tar.gz |
fix: account for \r line endings, remove consoles
Diffstat (limited to 'src/lib/Markdown/Markdown.tsx')
-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 09ad54a..0a71fd3 100644 --- a/src/lib/Markdown/Markdown.tsx +++ b/src/lib/Markdown/Markdown.tsx @@ -16,7 +16,7 @@ const Markdown: React.FC<PropTypes> = ({ data, url }) => { }, [data, url]); if (url) axios.get(url).then(response => setMarkdown(response.data)); - return <Section rawLines={markdown.split('\n')} /> + return <Section rawLines={markdown.split(/\r?\n/)} /> }; |