fix(ParsedownExtra): update namespace
This commit is contained in:
parent
f26b87b9ae
commit
107cb3fafe
@ -42,6 +42,10 @@
|
|||||||
* @license http://opensource.org/licenses/MIT The MIT License
|
* @license http://opensource.org/licenses/MIT The MIT License
|
||||||
* @version 3.0
|
* @version 3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Erusev\Parsedown\Parsedown;
|
||||||
|
use Erusev\ParsedownExtra\ParsedownExtra;
|
||||||
|
|
||||||
class Pico
|
class Pico
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -1561,7 +1565,7 @@ class Pico
|
|||||||
public function getParsedown()
|
public function getParsedown()
|
||||||
{
|
{
|
||||||
if ($this->parsedown === null) {
|
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 = new $className();
|
||||||
|
|
||||||
$this->parsedown->setBreaksEnabled((bool) $this->config['content_config']['breaks']);
|
$this->parsedown->setBreaksEnabled((bool) $this->config['content_config']['breaks']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user