Fix multiple \n in md to plain text
This commit is contained in:
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