You are here

public function Extension::parse in Markdown 3.0.x

Helper method for parsing markdown.

Parameters

string $markdown: The markdown to render.

Return value

string The rendered markdown into HTML.

File

src/Twig/Markdown/Extension.php, line 73

Class

Extension

Namespace

Drupal\markdown\Twig\Markdown

Code

public function parse($markdown) {
  return $this->markdown
    ->getParser()
    ->parse($markdown);
}