From d4cd685b79e416934f6b9006c5eeee98fc242cc5 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 17 Mar 2018 13:09:25 +0000 Subject: [PATCH] Use Markdown in mail notifications. Fixes #2935 --- app/Notifications/Incident/NewIncidentNotification.php | 2 +- .../IncidentUpdate/IncidentUpdatedNotification.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Notifications/Incident/NewIncidentNotification.php b/app/Notifications/Incident/NewIncidentNotification.php index d92d8b55..6b7a64fe 100644 --- a/app/Notifications/Incident/NewIncidentNotification.php +++ b/app/Notifications/Incident/NewIncidentNotification.php @@ -78,7 +78,7 @@ class NewIncidentNotification extends Notification ->greeting(trans('notifications.incident.new.mail.greeting', ['app_name' => Config::get('setting.app_name')])) ->line($content) ->action(trans('notifications.incident.new.mail.action'), cachet_route('incident', [$this->incident])) - ->line($this->incident->message) + ->markdown($this->incident->message) ->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)])); } diff --git a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php index 8ad88647..30d9c6ea 100644 --- a/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php +++ b/app/Notifications/IncidentUpdate/IncidentUpdatedNotification.php @@ -82,7 +82,7 @@ class IncidentUpdatedNotification extends Notification ])) ->line($content) ->action(trans('notifications.incident.update.mail.action'), cachet_route('incident', [$this->update->incident])) - ->line($this->update->message) + ->markdown($this->update->message) ->line(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)])); }