You are here

public static function ParsedMarkdown::create in Markdown 3.0.x

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

2 calls to ParsedMarkdown::create()
BaseParser::parse in src/Plugin/Markdown/BaseParser.php
Parses markdown into HTML.
MarkdownParserBenchmarkTrait::parse in src/Traits/MarkdownParserBenchmarkTrait.php

File

src/ParsedMarkdown.php, line 97

Class

ParsedMarkdown

Namespace

Drupal\markdown

Code

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