Replace Mardown parser by another one to be able to disallow markup or entities

This commit is contained in:
Frédéric Guillot
2014-02-21 19:06:53 -05:00
parent 252b589c34
commit c80ec9f10c
9 changed files with 3218 additions and 1013 deletions

View File

@@ -4,8 +4,13 @@ namespace Helper;
function markdown($text)
{
require_once __DIR__.'/../vendor/Parsedown/Parsedown.php';
return \Parsedown::instance()->parse($text);
require_once __DIR__.'/../vendor/Michelf/MarkdownExtra.inc.php';
$parser = new \Michelf\MarkdownExtra;
$parser->no_markup = true;
$parser->no_entities = true;
return $parser->transform($text);
}
function get_current_base_url()