Missing default value for MARKDOWN_ESCAPED constant
Also removed stray trailing whitespace in Helper.php
This commit is contained in:
@@ -502,7 +502,7 @@ class Helper
|
|||||||
public function markdown($text, array $link = array())
|
public function markdown($text, array $link = array())
|
||||||
{
|
{
|
||||||
$parser = new Markdown($link, $this);
|
$parser = new Markdown($link, $this);
|
||||||
$parser->setMarkupEscaped(MARKDOWN_ESCAPED);
|
$parser->setMarkupEscaped(MARKDOWN_ESCAPED);
|
||||||
return $parser->text($text);
|
return $parser->text($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,3 +74,5 @@ defined('ENABLE_XFRAME') or define('ENABLE_XFRAME', true);
|
|||||||
// Default files directory
|
// Default files directory
|
||||||
defined('FILES_DIR') or define('FILES_DIR', 'data/files/');
|
defined('FILES_DIR') or define('FILES_DIR', 'data/files/');
|
||||||
|
|
||||||
|
// Escape html inside markdown text
|
||||||
|
define('MARKDOWN_ESCAPED', true);
|
||||||
|
|||||||
Reference in New Issue
Block a user