You are here

public function ParsedMarkdown::__construct in Markdown 8.2

ParsedMarkdown constructor.

Parameters

string $markdown: The raw markdown.

string $html: The parsed HTML from $markdown.

\Drupal\Core\Language\LanguageInterface|null $language: Optional. The language of the parsed markdown, if known.

File

src/Render/ParsedMarkdown.php, line 76

Class

ParsedMarkdown
The end result of parsing markdown into HTML.

Namespace

Drupal\markdown\Render

Code

public function __construct($markdown = '', $html = '', LanguageInterface $language = NULL) {
  $this->html = trim($html);
  $this->markdown = trim($markdown);
  $this->language = $language;
}