From 4d6952361e5b2d35513036ab5e79da5bcb5bfe81 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 11 Oct 2021 14:15:42 +0200 Subject: Fix multiple \n in md to plain text --- server/helpers/markdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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, ', ') } // --------------------------------------------------------------------------- -- cgit v1.2.3