Merge pull request #1 from PxaMMaxP/content-filter-trigger-events
Add Event Triggers to `content` Filter
This commit is contained in:
commit
06b89a9878
1 changed files with 2 additions and 0 deletions
|
@ -2169,7 +2169,9 @@ class Pico
|
|||
$pageData = &$pages[$page];
|
||||
if (!isset($pageData['content'])) {
|
||||
$markdown = $pico->prepareFileContent($pageData['raw_content'], $pageData['meta'], $page);
|
||||
$this->triggerEvent('onContentPrepared', [ &$markdown ]);
|
||||
$pageData['content'] = $pico->parseFileContent($markdown);
|
||||
$this->triggerEvent('onContentParsed', [ &$pageData['content'] ]);
|
||||
}
|
||||
return $pageData['content'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue