public function MarkdownParserBenchmarkTrait::parse in Markdown 3.0.x
Return value
\Drupal\markdown\ParsedMarkdownInterface
1 call to MarkdownParserBenchmarkTrait::parse()
File
- src/
Traits/ MarkdownParserBenchmarkTrait.php, line 94
Class
Namespace
Drupal\markdown\TraitsCode
public function parse($markdown, LanguageInterface $language = NULL) {
return ParsedMarkdown::create($markdown, static::$benchmark ?: $this
->convertToHtml($markdown, $language), $language);
}