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
__construct(Factory $view, array $options = [])

Create a new Markdown renderer instance.

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.

Parameters

Factory $view
array $options

Return Value

void

at line 56
HtmlString render(string $view, array $data = [], CssToInlineStyles|null $inliner = null)

Render the Markdown template into HTML.

Parameters

string $view
array $data
CssToInlineStyles|null $inliner

Return Value

HtmlString

at line 76
HtmlString renderText(string $view, array $data = [])

Render the Markdown template into HTML.

Parameters

string $view
array $data

Return Value

HtmlString

at line 95
static string parse(string $text)

Parse the given Markdown text into HTML.

Parameters

string $text

Return Value

string

at line 107
array htmlComponentPaths()

Get the HTML component paths.

Return Value

array

at line 119
array markdownComponentPaths()

Get the Markdown component paths.

Return Value

array

at line 131
protected array componentPaths()

Get the component paths.

Return Value

array

at line 144
void loadComponentsFrom(array $paths = [])

Register new mail component paths.

Parameters

array $paths

Return Value

void