parserManager = $parserManager; } /** * Transforms markdown syntax to HTML * * @param string $markdownText The markdown syntax text * @param null|string $parserName * * @return string The HTML code * * @throws \RuntimeException */ public function transform($markdownText, $parserName = null) { trigger_error('The MarkdownHelper was deprecated in 1.7 and will be removed in KnpMarkdownBundle 2.0.', E_USER_DEPRECATED); return $this->parserManager->transform($markdownText, $parserName); } /** * Sets the default charset. * * @param string $charset The charset */ public function setCharset($charset) { $this->charset = $charset; } /** * Gets the default charset. * * @return string The default charset */ public function getCharset() { return $this->charset; } /** * {@inheritDoc} */ public function getName() { return 'markdown'; } }