From d2a7113cae11ad8de656688b580414421e53d148 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 17:46:10 +0200 Subject: [PATCH] Fix oopsie doodle --- plugins/shortcode-custom/Prismjsshroot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/shortcode-custom/Prismjsshroot.php b/plugins/shortcode-custom/Prismjsshroot.php index 92da6db..adf9ee1 100644 --- a/plugins/shortcode-custom/Prismjsshroot.php +++ b/plugins/shortcode-custom/Prismjsshroot.php @@ -8,8 +8,8 @@ class Prismjsshroot extends Shortcode public function init() { $this->shortcode->getRawHandlers()->add('shroot', function(ShortcodeInterface $sc) { - $content = preg_replace('/^```.*(\n)?$/m', '', $content); - $content = trim($sc->getContent()); + $content = preg_replace('/^```.*(\n)?$/m', '', $sc->getContent()); + $content = trim($content); return '
'.$content.'
'; }); }