From c02577079151e4f146690a3cb94532a45db23bde Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 8 Feb 2022 12:12:33 -0700 Subject: [PATCH 1/2] rawHandlers support --- CHANGELOG.md | 6 ++++++ classes/shortcodes/PageInjectShortcode.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59bac2b..d8774de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v2.1.3 +## 02/08/2022 + +1. [](#improved) + * Shortcodes should use `rawHanders()` to support shortcodes/markdown + # v2.1.2 ## 02/08/2022 diff --git a/classes/shortcodes/PageInjectShortcode.php b/classes/shortcodes/PageInjectShortcode.php index d21ce4d..e4b6120 100644 --- a/classes/shortcodes/PageInjectShortcode.php +++ b/classes/shortcodes/PageInjectShortcode.php @@ -9,12 +9,12 @@ class PageInjectShortcode extends Shortcode { public function init() { - $this->shortcode->getHandlers()->add('page-inject', function(ShortcodeInterface $sc) { + $this->shortcode->getRawHandlers()->add('page-inject', function(ShortcodeInterface $sc) { $path = $sc->getParameter('path') ?? $sc->getBbCode(); return PageInjectPlugin::getInjectedPageContent('page-inject', $path); }); - $this->shortcode->getHandlers()->add('content-inject', function(ShortcodeInterface $sc) { + $this->shortcode->getRawHandlers()->add('content-inject', function(ShortcodeInterface $sc) { $path = $sc->getParameter('path') ?? $sc->getBbCode(); return PageInjectPlugin::getInjectedPageContent('content-inject', $path); }); From 9021b74de2b79ea2a151b85e5aed1752c02a953b Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 8 Feb 2022 12:13:01 -0700 Subject: [PATCH 2/2] prepare for release --- blueprints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints.yaml b/blueprints.yaml index 2f86e02..66eec8a 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Page Inject type: plugin slug: page-inject -version: 2.1.2 +version: 2.1.3 description: "**Page Inject** is a powerful plugin that lets you inject entire pages or page content into other pages using simple markdown-style or shortcode syntax" icon: trello author: