You are here

public static function ParsedMarkdown::create in Markdown 8.2

Creates new ParsedMarkdown object.

Parameters

string $markdown: The raw markdown.

string $html: The parsed HTML from $markdown.

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

Return value

static

Overrides ParsedMarkdownInterface::create

1 call to ParsedMarkdown::create()
MissingParser::parse in src/Plugin/Markdown/MissingParser.php
Parses markdown into HTML.

File

src/Render/ParsedMarkdown.php, line 92

Class

ParsedMarkdown
The end result of parsing markdown into HTML.

Namespace

Drupal\markdown\Render

Code

public static function create($markdown = '', $html = '', LanguageInterface $language = NULL) {
  return new static($markdown, $html, $language);
}