You are here

public function MarkdownParserBenchmarkTrait::parse in Markdown 3.0.x

Return value

\Drupal\markdown\ParsedMarkdownInterface

1 call to MarkdownParserBenchmarkTrait::parse()
MarkdownParserBenchmarkTrait::benchmarkRender in src/Traits/MarkdownParserBenchmarkTrait.php

File

src/Traits/MarkdownParserBenchmarkTrait.php, line 94

Class

MarkdownParserBenchmarkTrait

Namespace

Drupal\markdown\Traits

Code

public function parse($markdown, LanguageInterface $language = NULL) {
  return ParsedMarkdown::create($markdown, static::$benchmark ?: $this
    ->convertToHtml($markdown, $language), $language);
}