Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 1, 2017
1 parent 970c722 commit ad2eaf7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 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' => isset($this->textView) ? $this->textView : $markdown->renderText($this->markdown, $data),
'text' => $this->buildMarkdownText(),
];
}

Expand All @@ -214,6 +214,18 @@ public function buildViewData()
return $data;
}

/**
* Build the text view for a Markdown message.
*
* @return string
*/
protected function buildMarkdownText()
{
return isset($this->textView)
? $this->textView
: $markdown->renderText($this->markdown, $data);
}

/**
* Add the sender to the message.
*
Expand Down

0 comments on commit ad2eaf7

Please sign in to comment.