Skip to content

Commit

Permalink
Allow a plain text alternative view when using markdown within mailables
Browse files Browse the repository at this point in the history
  • Loading branch information
jodiedunlop committed Jun 1, 2017
1 parent fa418fb commit 970c722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/Mailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ protected function buildMarkdownView()

return [
'html' => $markdown->render($this->markdown, $data),
'text' => $markdown->renderText($this->markdown, $data),
'text' => isset($this->textView) ? $this->textView : $markdown->renderText($this->markdown, $data),
];
}

Expand Down

0 comments on commit 970c722

Please sign in to comment.