diff --git a/plugins/shortcode-custom/CustomPrismjs.php b/plugins/shortcode-custom/CustomPrismjs.php index 44f5cc9..18a914f 100644 --- a/plugins/shortcode-custom/CustomPrismjs.php +++ b/plugins/shortcode-custom/CustomPrismjs.php @@ -8,7 +8,7 @@ class CustomPrismjs extends Shortcode public function init() { $this->shortcode->getHandlers()->add('rootsh', function(ShortcodeInterface $sc) { - $content = rtrim(ltrim($sc->getContent())); + $content = trim($sc->getContent(), "\n "); return '
'.$content.'
'; }); }