fix(ParsedownExtra): update namespace

This commit is contained in:
Jérémy Dufraisse 2023-02-22 19:40:18 +01:00
parent f26b87b9ae
commit 107cb3fafe

View File

@ -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']);