Skip to content

Commit 7efe1b6

Browse files
committed
Rename markdown mail folder to text
The reason for this rename is because it's actually the wrong name. Both the HTML and text directories can contain Markdown, which will be properly rendered. The markdown directory atm just contains the plain text views of the email message. Note that I chose the "text" naming and not the "plain text" naming because we already use the "text" naming through the codebase at the moment.
1 parent f95dfb4 commit 7efe1b6

File tree

12 files changed

+6
-6
lines changed

12 files changed

+6
-6
lines changed

src/Illuminate/Mail/Markdown.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function render($view, array $data = [], $inliner = null)
6666
}
6767

6868
/**
69-
* Render the Markdown template into HTML.
69+
* Render the Markdown template into text.
7070
*
7171
* @param string $view
7272
* @param array $data
@@ -77,7 +77,7 @@ public function renderText($view, array $data = [])
7777
$this->view->flushFinderCache();
7878

7979
$contents = $this->view->replaceNamespace(
80-
'mail', $this->markdownComponentPaths()
80+
'mail', $this->textComponentPaths()
8181
)->make($view, $data)->render();
8282

8383
return new HtmlString(
@@ -111,14 +111,14 @@ public function htmlComponentPaths()
111111
}
112112

113113
/**
114-
* Get the Markdown component paths.
114+
* Get the text component paths.
115115
*
116116
* @return array
117117
*/
118-
public function markdownComponentPaths()
118+
public function textComponentPaths()
119119
{
120120
return array_map(function ($path) {
121-
return $path.'/markdown';
121+
return $path.'/text';
122122
}, $this->componentPaths());
123123
}
124124

0 commit comments

Comments
 (0)