1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed text paragraph formats

This commit is contained in:
Fedor Katurov 2019-11-27 14:06:05 +07:00
parent c77e8e677a
commit 64e51634aa

View file

@ -101,7 +101,7 @@ export const formatText = (text: string): string =>
export const formatTextParagraphs = (text: string): string => export const formatTextParagraphs = (text: string): string =>
(text && (text &&
text formatText(text)
.split('\n') .split('\n')
.map(str => `<p>${str}</p>`) .map(str => `<p>${str}</p>`)
.join('\n')) || .join('\n')) ||