From 1ce0176ab6856d73ffbc2f7d849f80906ebb7d1b Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 19 Mar 2020 14:25:08 -0600 Subject: [PATCH] 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));