diff --git a/CHANGELOG.md b/CHANGELOG.md index 70f99bbfd..a7932b3b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#new) * Moved `Parsedown` 1.6 and `ParsedownExtra` 0.7 into `Grav\Framework\Parsedown` to allow fixes + * Added `aliases.php` with references to direct `\Parsedown` and `\ParsedownExtra` references 1. [](#improved) * Upgraded `jQuery` to latest 3.4.1 version [#2859](https://github.com/getgrav/grav/issues/2859) 1. [](#bugfix) diff --git a/composer.json b/composer.json index 1b043bed8..7314c059a 100644 --- a/composer.json +++ b/composer.json @@ -84,7 +84,8 @@ "Grav\\": "system/src/Grav" }, "files": [ - "system/defines.php" + "system/defines.php", + "system/aliases.php" ] }, "archive": { diff --git a/system/aliases.php b/system/aliases.php new file mode 100644 index 000000000..387f3a4c9 --- /dev/null +++ b/system/aliases.php @@ -0,0 +1,5 @@ +settings = $package->toArray(); - $html_description = \Parsedown::instance()->line($this->__get('description')); + $html_description = Parsedown::instance()->line($this->__get('description')); $this->data->set('slug', $package->__get('slug')); $this->data->set('description_html', $html_description); $this->data->set('description_plain', strip_tags($html_description));