Improve pull-request #738

This commit is contained in:
Frederic Guillot 2015-03-30 20:52:30 -04:00
parent 147f2015c0
commit b17f4b28ca
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -75,4 +75,4 @@ defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true);
defined('FILES_DIR') or define('FILES_DIR', 'data/files/');
// Escape html inside markdown text
define('MARKDOWN_ESCAPED', true);
defined('MARKDOWN_ESCAPE_HTML') or define('MARKDOWN_ESCAPE_HTML', true);

View File

@ -1,5 +1,7 @@
<?php
// Rename this file to config.php if you want to change the values
// Enable/Disable debug
define('DEBUG', false);
@ -129,4 +131,4 @@ define('ENABLE_HSTS', true);
define('ENABLE_XFRAME', true);
// Escape html inside markdown text
define('MARKDOWN_ESCAPED', true);
define('MARKDOWN_ESCAPE_HTML', true);