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