address deprecated message

This commit is contained in:
Andy Miller
2019-05-18 11:12:58 -06:00
parent 7e1d3b260e
commit 30e96aa4ff

View File

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