From 0da7958cae5778b251613d4d5e5d969877909b4e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 17:44:40 +0200 Subject: [PATCH] Trim all standard stuff --- plugins/shortcode-custom/Prismjsshroot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/shortcode-custom/Prismjsshroot.php b/plugins/shortcode-custom/Prismjsshroot.php index 6969207..92da6db 100644 --- a/plugins/shortcode-custom/Prismjsshroot.php +++ b/plugins/shortcode-custom/Prismjsshroot.php @@ -9,7 +9,7 @@ class Prismjsshroot extends Shortcode { $this->shortcode->getRawHandlers()->add('shroot', function(ShortcodeInterface $sc) { $content = preg_replace('/^```.*(\n)?$/m', '', $content); - $content = trim($sc->getContent(), "\n "); + $content = trim($sc->getContent()); return '
'.$content.'
'; }); }