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
Namespace
Drupal\markdown\Twig\MarkdownCode
public function parse($markdown) {
return $this->markdown
->getParser()
->parse($markdown);
}