Skip to content

Commit 970c722

Browse files
committed
Allow a plain text alternative view when using markdown within mailables
1 parent fa418fb commit 970c722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Mail/Mailable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function buildMarkdownView()
192192

193193
return [
194194
'html' => $markdown->render($this->markdown, $data),
195-
'text' => $markdown->renderText($this->markdown, $data),
195+
'text' => isset($this->textView) ? $this->textView : $markdown->renderText($this->markdown, $data),
196196
];
197197
}
198198

0 commit comments

Comments
 (0)