Markdown
class Markdown
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
render(string $view, array $data = [], CssToInlineStyles|null $inliner = null)
Render the Markdown template into HTML.
renderText(string $view, array $data = [])
Render the Markdown template into HTML.
static string
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.
Details
at line 41
void
__construct(Factory $view, array $options = [])
Create a new Markdown renderer instance.
at line 56
HtmlString
render(string $view, array $data = [], CssToInlineStyles|null $inliner = null)
Render the Markdown template into HTML.
at line 76
HtmlString
renderText(string $view, array $data = [])
Render the Markdown template into HTML.
at line 95
static string
parse(string $text)
Parse the given Markdown text into HTML.
at line 107
array
htmlComponentPaths()
Get the HTML component paths.
at line 119
array
markdownComponentPaths()
Get the Markdown component paths.
at line 131
protected array
componentPaths()
Get the component paths.
at line 144
void
loadComponentsFrom(array $paths = [])
Register new mail component paths.