Skip to content

Commit 48d4d93

Browse files
committed
Merge branch 'release/2.1.3'
2 parents 1279cf2 + 9021b74 commit 48d4d93

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v2.1.3
2+
## 02/08/2022
3+
4+
1. [](#improved)
5+
* Shortcodes should use `rawHanders()` to support shortcodes/markdown
6+
17
# v2.1.2
28
## 02/08/2022
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Page Inject
22
type: plugin
33
slug: page-inject
4-
version: 2.1.2
4+
version: 2.1.3
55
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"
66
icon: trello
77
author:

classes/shortcodes/PageInjectShortcode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class PageInjectShortcode extends Shortcode
99
{
1010
public function init()
1111
{
12-
$this->shortcode->getHandlers()->add('page-inject', function(ShortcodeInterface $sc) {
12+
$this->shortcode->getRawHandlers()->add('page-inject', function(ShortcodeInterface $sc) {
1313
$path = $sc->getParameter('path') ?? $sc->getBbCode();
1414
return PageInjectPlugin::getInjectedPageContent('page-inject', $path);
1515
});
1616

17-
$this->shortcode->getHandlers()->add('content-inject', function(ShortcodeInterface $sc) {
17+
$this->shortcode->getRawHandlers()->add('content-inject', function(ShortcodeInterface $sc) {
1818
$path = $sc->getParameter('path') ?? $sc->getBbCode();
1919
return PageInjectPlugin::getInjectedPageContent('content-inject', $path);
2020
});

0 commit comments

Comments
 (0)