shortcode->getRawHandlers()->add('shroot', function(ShortcodeInterface $sc) { $content = preg_replace('/^```.*(\n)?$/m', '', $sc->getContent()); $content = trim($content); return '
'.$content.'