1
0
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:
Awilum
2022-05-25 21:04:52 +03:00
parent ed4b66f9f5
commit 574869528f

View File

@@ -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 '';