]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5390 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Aug 2022 07:17:49 +0000 (09:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 16 Aug 2022 07:17:49 +0000 (09:17 +0200)
app/Jobs/DownloadBase.php

index 4c8b5519d56ae69eea379ec773a9fbb64e119064..837c546933f4b47f23ce7371730ec78458dd8883 100644 (file)
@@ -12,6 +12,7 @@ use Cubist\Util\Zip;
 use GrahamCampbell\Markdown\Facades\Markdown;
 use Illuminate\Support\Facades\Mail;
 use JoliCode\Slack\ClientFactory;
+use League\CommonMark\CommonMarkConverter;
 
 class DownloadBase extends Base
 {
@@ -122,10 +123,13 @@ class DownloadBase extends Base
         if ($text) {
             $body .= '<br>' . $text;
         }
+
+        $converter = new CommonMarkConverter();
+
         $mail = new DeferredDownload();
         $mail->to($this->user->email);
         $mail->subject($subject);
-        $mail->html(Markdown::convert($body)->getContent());
+        $mail->html($converter->convertToHtml($body));
         Mail::send($mail);
     }