mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 06:06:45 +02:00
feat(shortcodes): update raw
shortcode
This commit is contained in:
@@ -22,7 +22,8 @@ use Thunder\Shortcode\Shortcode\ShortcodeInterface;
|
||||
|
||||
use function parsers;
|
||||
|
||||
// Shortcode: [raw] shortcodes to escape [/raw]
|
||||
// Shortcode: raw
|
||||
// Usage: (raw) shortcodes to escape (/raw)
|
||||
parsers()->shortcodes()->addHandler('raw', static function (ShortcodeInterface $s) {
|
||||
if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.raw.enabled')) {
|
||||
return '';
|
||||
|
Reference in New Issue
Block a user