Fixed wrong task link generation within Markdown text

This commit is contained in:
Frederic Guillot
2016-04-29 17:32:43 -04:00
parent 81a25cbe63
commit fc8f8748b9
8 changed files with 124 additions and 83 deletions

View File

@@ -27,13 +27,13 @@ class TextHelper extends Base
/**
* Markdown transformation
*
* @param string $text Markdown content
* @param array $link Link parameters for replacement
* @param string $text
* @param boolean $isPublicLink
* @return string
*/
public function markdown($text, array $link = array())
public function markdown($text, $isPublicLink = false)
{
$parser = new Markdown($this->container, $link);
$parser = new Markdown($this->container, $isPublicLink);
$parser->setMarkupEscaped(MARKDOWN_ESCAPE_HTML);
return $parser->text($text);
}