diff --git a/plugins/shortcode-custom/Prismjsshroot.php b/plugins/shortcode-custom/Prismjsshroot.php index 3eda12a..6969207 100644 --- a/plugins/shortcode-custom/Prismjsshroot.php +++ b/plugins/shortcode-custom/Prismjsshroot.php @@ -8,7 +8,7 @@ class Prismjsshroot extends Shortcode public function init() { $this->shortcode->getRawHandlers()->add('shroot', function(ShortcodeInterface $sc) { - $content = preg_replace('/^```.*$/m', '', $content); + $content = preg_replace('/^```.*(\n)?$/m', '', $content); $content = trim($sc->getContent(), "\n "); return '
'.$content.'
'; });