Markdown
class Markdown (View source)
Properties
| protected Factory | $view | The view factory implementation. | |
| protected string | $theme | The current theme being used when generating emails. | |
| protected array | $componentPaths | The registered component paths. | 
Methods
| void |  __construct(Factory $view, array $options = [])  Create a new Markdown renderer instance.  |  |
| HtmlString |  render(string $view, array $data = [], CssToInlineStyles|null $inliner = null)  Render the Markdown template into HTML.  |  |
| HtmlString |  renderText(string $view, array $data = [])  Render the Markdown template into HTML.  |  |
| static HtmlString |  parse(string $text)  Parse the given Markdown text into HTML.  |  |
| array |  htmlComponentPaths()  Get the HTML component paths.  |  |
| array |  markdownComponentPaths()  Get the Markdown component paths.  |  |
| array |  componentPaths()  Get the component paths.  |  |
| void |  loadComponentsFrom(array $paths = [])  Register new mail component paths.  |  |
| $this |  theme(string $theme)  Set the default theme to be used.  |  
Details
void __construct(Factory $view, array $options = [])
Create a new Markdown renderer instance.
HtmlString render(string $view, array $data = [], CssToInlineStyles|null $inliner = null)
Render the Markdown template into HTML.
HtmlString renderText(string $view, array $data = [])
Render the Markdown template into HTML.
static HtmlString parse(string $text)
Parse the given Markdown text into HTML.
array htmlComponentPaths()
Get the HTML component paths.
array markdownComponentPaths()
Get the Markdown component paths.
protected array componentPaths()
Get the component paths.
void loadComponentsFrom(array $paths = [])
Register new mail component paths.
$this theme(string $theme)
Set the default theme to be used.
    © Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
    https://laravel.com/api/5.5/Illuminate/Mail/Markdown.html