diff --git a/server/helpers/markdown.ts b/server/helpers/markdown.ts index 41e57d857..ebf479b98 100644 --- a/server/helpers/markdown.ts +++ b/server/helpers/markdown.ts @@ -34,7 +34,7 @@ const mdToPlainText = text => { return safeHtml.replace(/<[^>]+>/g, '') .replace(/\n$/, '') - .replace('\n', ', ') + .replace(/\n/g, ', ') } // ---------------------------------------------------------------------------