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:
parent
c77e8e677a
commit
64e51634aa
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ export const formatText = (text: string): string =>
|
|||
|
||||
export const formatTextParagraphs = (text: string): string =>
|
||||
(text &&
|
||||
text
|
||||
formatText(text)
|
||||
.split('\n')
|
||||
.map(str => `<p>${str}</p>`)
|
||||
.join('\n')) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue