From ad2525fc5bcce03f1a487b7d4c04c2128ec7e867 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 13:34:23 +0000 Subject: [PATCH] try removing newlines like this --- 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 18a914f..e985ca5 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('rootsh', function(ShortcodeInterface $sc) { + $this->shortcode->getRawHandlers()->add('rootsh', function(ShortcodeInterface $sc) { $content = trim($sc->getContent(), "\n "); return '
'.$content.'
'; });