diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index a0279681..922faba0 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -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() |