Show profile link for @username mentions

This commit is contained in:
Frederic Guillot
2015-12-15 22:39:39 -05:00
parent 9e1f4fa6c7
commit 7f980cffcc
11 changed files with 133 additions and 24 deletions

View File

@@ -3,14 +3,15 @@
namespace Kanboard\Helper;
use Kanboard\Core\Markdown;
use Kanboard\Core\Base;
/**
* Text helpers
* Text Helpers
*
* @package helper
* @author Frederic Guillot
*/
class Text extends \Kanboard\Core\Base
class Text extends Base
{
/**
* Markdown transformation
@@ -21,7 +22,7 @@ class Text extends \Kanboard\Core\Base
*/
public function markdown($text, array $link = array())
{
$parser = new Markdown($link, $this->helper->url);
$parser = new Markdown($this->container, $link);
$parser->setMarkupEscaped(MARKDOWN_ESCAPE_HTML);
return $parser->text($text);
}