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