mirror of
https://github.com/getgrav/grav.git
synced 2026-02-04 22:00:13 +01:00
address deprecated message
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
namespace Grav\Common\Page\Medium;
|
||||
|
||||
use Grav\Common\Markdown\Parsedown;
|
||||
use Grav\Common\Page\Markdown\Excerpts;
|
||||
|
||||
trait ParsedownHtmlTrait
|
||||
{
|
||||
@@ -33,7 +34,7 @@ trait ParsedownHtmlTrait
|
||||
$element = $this->parsedownElement($title, $alt, $class, $id, $reset);
|
||||
|
||||
if (!$this->parsedown) {
|
||||
$this->parsedown = new Parsedown();
|
||||
$this->parsedown = new Parsedown(new Excerpts());
|
||||
}
|
||||
|
||||
return $this->parsedown->elementToHtml($element);
|
||||
|
||||
Reference in New Issue
Block a user