Fix multiple \n in md to plain text
This commit is contained in:
parent
ab632f438e
commit
4d6952361e
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ const mdToPlainText = text => {
|
||||||
|
|
||||||
return safeHtml.replace(/<[^>]+>/g, '')
|
return safeHtml.replace(/<[^>]+>/g, '')
|
||||||
.replace(/\n$/, '')
|
.replace(/\n$/, '')
|
||||||
.replace('\n', ', ')
|
.replace(/\n/g, ', ')
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue