From 12e36ebee779fbf13d6f08a127b1100dd028c5d0 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 2 Jun 2023 17:39:06 +0200 Subject: [PATCH] Strip standard markdown formatting --- plugins/shortcode-custom/Prismjsshroot.php | 1 + 1 file changed, 1 insertion(+) 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.'
'; }); }