From 1ce0176ab6856d73ffbc2f7d849f80906ebb7d1b Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 19 Mar 2020 14:25:08 -0600 Subject: [PATCH 1/2] created aliases for direct \Parsedown and \ParsedownExtra references --- composer.json | 3 ++- system/aliases.php | 5 +++++ system/src/Grav/Common/GPM/Local/Package.php | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 system/aliases.php 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)); From 9c8df27bf1b1683827c58a0b374c40d60565670d Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 19 Mar 2020 14:27:25 -0600 Subject: [PATCH 2/2] Updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) 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)