We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970c722 commit ad2eaf7Copy full SHA for ad2eaf7
src/Illuminate/Mail/Mailable.php
@@ -192,7 +192,7 @@ protected function buildMarkdownView()
192
193
return [
194
'html' => $markdown->render($this->markdown, $data),
195
- 'text' => isset($this->textView) ? $this->textView : $markdown->renderText($this->markdown, $data),
+ 'text' => $this->buildMarkdownText(),
196
];
197
}
198
@@ -214,6 +214,18 @@ public function buildViewData()
214
return $data;
215
216
217
+ /**
218
+ * Build the text view for a Markdown message.
219
+ *
220
+ * @return string
221
+ */
222
+ protected function buildMarkdownText()
223
+ {
224
+ return isset($this->textView)
225
+ ? $this->textView
226
+ : $markdown->renderText($this->markdown, $data);
227
+ }
228
+
229
/**
230
* Add the sender to the message.
231
*
0 commit comments