mirror of
https://github.com/getgrav/grav.git
synced 2026-02-23 07:01:26 +01:00
Including description_html and description_plain in the Local Packages
This commit is contained in:
@@ -28,7 +28,10 @@ class Package
|
||||
$this->blueprints = $this->data->blueprints();
|
||||
|
||||
if ($package_type) {
|
||||
$html_description = \Parsedown::instance()->line($this->blueprints->get('description'));
|
||||
$this->blueprints->set('package_type', $package_type);
|
||||
$this->blueprints->set('description_html', $html_description);
|
||||
$this->blueprints->set('description_plain', strip_tags($html_description));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user