mirror of https://github.com/Chocobozzz/PeerTube
Fix multiple \n in md to plain text
parent
ab632f438e
commit
4d6952361e
|
@ -34,7 +34,7 @@ const mdToPlainText = text => {
|
|||
|
||||
return safeHtml.replace(/<[^>]+>/g, '')
|
||||
.replace(/\n$/, '')
|
||||
.replace('\n', ', ')
|
||||
.replace(/\n/g, ', ')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue