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