From 107cb3fafec386b418c70fd6b869906c2b1921db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Wed, 22 Feb 2023 19:40:18 +0100 Subject: [PATCH] fix(ParsedownExtra): update namespace --- lib/Pico.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Pico.php b/lib/Pico.php index d3036d5..37057aa 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -42,6 +42,10 @@ * @license http://opensource.org/licenses/MIT The MIT License * @version 3.0 */ + +use Erusev\Parsedown\Parsedown; +use Erusev\ParsedownExtra\ParsedownExtra; + class Pico { /** @@ -1561,7 +1565,7 @@ class Pico public function getParsedown() { if ($this->parsedown === null) { - $className = $this->config['content_config']['extra'] ? 'ParsedownExtra' : 'Parsedown'; + $className = $this->config['content_config']['extra'] ? ParsedownExtra::class : Parsedown::class; $this->parsedown = new $className(); $this->parsedown->setBreaksEnabled((bool) $this->config['content_config']['breaks']);