Add option for toggling html escapes inside markdown fields

This commit is contained in:
Semyon Novikov 2015-03-25 08:35:07 +05:00
parent 92510eefb1
commit 9a04118fcd
2 changed files with 4 additions and 1 deletions

View File

@ -502,7 +502,7 @@ class Helper
public function markdown($text, array $link = array())
{
$parser = new Markdown($link, $this);
$parser->setMarkupEscaped(true);
$parser->setMarkupEscaped(MARKDOWN_ESCAPED);
return $parser->text($text);
}

View File

@ -127,3 +127,6 @@ define('ENABLE_HSTS', true);
// Enable or disable "X-Frame-Options: DENY" HTTP header
define('ENABLE_XFRAME', true);
// Escape html inside markdown text
define('MARKDOWN_ESCAPED', false);