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