1
0
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:
Awilum
2022-05-09 17:02:50 +03:00
parent b01bba679e
commit 132025c51d

View File

@@ -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();
});