Add the page to the onMarkdownInitialized event. (#2418)

This will allow plugins hooking this event to mergeConfig #2412
This commit is contained in:
Antoine Goutenoir
2019-03-25 17:51:06 +01:00
committed by Matias Griese
parent f7d3299ebb
commit 55aaaeed47

View File

@@ -47,7 +47,7 @@ trait ParsedownGravTrait
$this->setMarkupEscaped($defaults['escape_markup']);
$this->setSpecialChars($defaults['special_chars']);
$grav->fireEvent('onMarkdownInitialized', new Event(['markdown' => $this]));
$grav->fireEvent('onMarkdownInitialized', new Event(['markdown' => $this, 'page' => $page]));
}