diff --git a/src/flextype/core/Parsers/Shortcodes/TextileShortcode.php b/src/flextype/core/Parsers/Shortcodes/TextileShortcode.php index f3aef2b9..815c7aee 100644 --- a/src/flextype/core/Parsers/Shortcodes/TextileShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/TextileShortcode.php @@ -19,11 +19,12 @@ namespace Flextype\Parsers\Shortcodes; use Thunder\Shortcode\Shortcode\ShortcodeInterface; use function parsers; -// Shortcode: [textile] textile text here [/textile] +// Shortcode: textile +// Usage: (textile) textile text here (/textile) parsers()->shortcodes()->addHandler('textile', static function (ShortcodeInterface $s) { if (! registry()->get('flextype.settings.parsers.shortcodes.shortcodes.textile.enabled')) { return ''; } - return parsers()->textile()->parse($s->getContent()); + return parsers()->textile()->parse(parsers()->shortcodes()->parse($s->getContent())); }); \ No newline at end of file