mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 21:56:33 +02:00
feat(shortcodes): upd raw
shortcode
This commit is contained in:
@@ -24,6 +24,10 @@ use function parsers;
|
||||
|
||||
// Shortcode: [raw] shortcodes to escape [/raw]
|
||||
parsers()->shortcodes()->addHandler('raw', static function (ShortcodeInterface $s) {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.raw.enabled')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return $s->getContent();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user