diff --git a/plugins/shortcode-custom/Prismjsshroot.php b/plugins/shortcode-custom/Prismjsshroot.php index 9589855..3eda12a 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 = trim($sc->getContent(), "\n "); $content = preg_replace('/^```.*$/m', '', $content); + $content = trim($sc->getContent(), "\n "); return '
'.$content.'
'; }); }