Add event triggers for content preparation and
parsing when the content filter is called
This commit is contained in:
parent
f7637ad335
commit
fff524bf62
1 changed files with 2 additions and 0 deletions
|
@ -2122,7 +2122,9 @@ class Pico
|
|||
$pageData = &$pages[$page];
|
||||
if (!isset($pageData['content'])) {
|
||||
$markdown = $pico->prepareFileContent($pageData['raw_content'], $pageData['meta']);
|
||||
$this->triggerEvent('onContentPrepared', array(&$markdown));
|
||||
$pageData['content'] = $pico->parseFileContent($markdown);
|
||||
$this->triggerEvent('onContentParsed', array(&$pageData['content']));
|
||||
}
|
||||
return $pageData['content'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue