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.'
';
});
}