You are here

public function MarkdownInterface::parse in Markdown 8.2

Same name and namespace in other branches
  1. 3.0.x src/MarkdownInterface.php \Drupal\markdown\MarkdownInterface::parse()

Parses markdown into HTML.

Parameters

string $markdown: The markdown string to parse.

\Drupal\Core\Language\LanguageInterface $language: Optional. The language of the markdown that is being parsed.

Return value

\Drupal\markdown\Render\ParsedMarkdownInterface A ParsedMarkdown object.

1 method overrides MarkdownInterface::parse()
Markdown::parse in src/Markdown.php
Parses markdown into HTML.

File

src/MarkdownInterface.php, line 105

Class

MarkdownInterface
Interface MarkdownInterface.

Namespace

Drupal\markdown

Code

public function parse($markdown, LanguageInterface $language = NULL);