parser = $parser; } /** * 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; } public function getName() { return 'markdown'; } /** * Transforms markdown syntax to HTML * @param string $markdownText The markdown syntax text * @return string The HTML code */ public function transform($markdownText) { return $this->parser->transform($markdownText); } }