From ec7c1d859147c363fe7cabf05aaf0deddde32dae Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 13:18:46 +0000 Subject: [PATCH] use raw handler for prismjs shortcode --- plugins/shortcode-custom/CustomPrismjs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shortcode-custom/CustomPrismjs.php b/plugins/shortcode-custom/CustomPrismjs.php index d4607ad..65d6461 100644 --- a/plugins/shortcode-custom/CustomPrismjs.php +++ b/plugins/shortcode-custom/CustomPrismjs.php @@ -7,7 +7,7 @@ class CustomPrismjs extends Shortcode { public function init() { - $this->shortcode->getHandlers()->add('sh-root', function(ShortcodeInterface $sc) { + $this->shortcode->getRawHandlers()->add('sh-root', function(ShortcodeInterface $sc) { return '
'.$sc->getContent().'
'; }); }