Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-02-25 01:27:06 +0300
committerdartcafe <github@dartcafe.de>2022-02-25 01:27:06 +0300
commit21db1262149d43c5af5100e6db5a65699a1a1907 (patch)
treea148feb7acd487e74123a93606bbe6994f852ef4 /lib
parent9f0722dd86d1acba7daf9396f3e5dc0d2c418116 (diff)
use softbreaks in markdown
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Model/Mail/MailBase.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Model/Mail/MailBase.php b/lib/Model/Mail/MailBase.php
index 0335c7d1..e1e8cbd1 100644
--- a/lib/Model/Mail/MailBase.php
+++ b/lib/Model/Mail/MailBase.php
@@ -213,6 +213,9 @@ abstract class MailBase {
protected function getParsedMarkDown($source) : string {
$config = [
+ 'renderer' => [
+ 'soft_break' => "<br />",
+ ],
'html_input' => 'strip',
'allow_unsafe_links' => false,
];