From 968dc183db9fe57ad94fb5e2a536e52fc0d13243 Mon Sep 17 00:00:00 2001 From: theshka Date: Wed, 29 Apr 2015 07:07:59 -0700 Subject: [PATCH] Upgrade to Parsedown-extra --- composer.json | 2 +- lib/pico.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2d58f7c..7f53d7c 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "require": { "php": ">=5.2.4", "twig/twig": "1.18.*", - "michelf/php-markdown": "1.3" + "erusev/parsedown-extra": "dev-master@dev" }, "autoload": { "files": ["lib/pico.php"] diff --git a/lib/pico.php b/lib/pico.php index b1abecb..0db9ea3 100644 --- a/lib/pico.php +++ b/lib/pico.php @@ -129,7 +129,7 @@ class Pico { } /** - * Parses the content using Markdown + * Parses the content using Parsedown-extra * * @param string $content the raw txt content * @return string $content the Markdown formatted content @@ -138,7 +138,7 @@ class Pico { { $content = preg_replace('#/\*.+?\*/#s', '', $content, 1); // Remove first comment (with meta) $content = str_replace('%base_url%', $this->base_url(), $content); - $content = MarkdownExtra::defaultTransform($content); + $content = (new ParsedownExtra())->text($content); return $content; }