public function ParserInterface::parse in Markdown 8.2
Parses markdown into HTML.
Parameters
string $markdown: The markdown string to parse.
\Drupal\Core\Language\LanguageInterface $language: Optional. The language of the markdown to be parsed.
Return value
\Drupal\markdown\Render\ParsedMarkdownInterface A safe ParsedMarkdown object.
See also
\Drupal\markdown\Render\ParsedMarkdownInterface
2 methods override ParserInterface::parse()
- BaseParser::parse in src/
Plugin/ Markdown/ BaseParser.php - Parses markdown into HTML.
- MissingParser::parse in src/
Plugin/ Markdown/ MissingParser.php - Parses markdown into HTML.
File
- src/
Plugin/ Markdown/ ParserInterface.php, line 28
Class
- ParserInterface
- Interface for defining markdown parsers.
Namespace
Drupal\markdown\Plugin\MarkdownCode
public function parse($markdown, LanguageInterface $language = NULL);