Laravel-Shortcodes
Laravel-Shortcodes copied to clipboard
Nesting more than 2 levels deep
Hello. The shortcode compiler fails when the nesting of the shortcodes is more than 2 levels deep. For example:
[row]
[column]
[text]some text here[/text]
[/column]
[/row]
would just render the [text] shortcode. I tried to play with the /vendor/brouwers/shortcodes/src/Brouwers/Shortcodes/Compilers/ShortcodeCompiler.php a little and at line:
175 if you do a:
return $this->matches[5];
instead of
return $this->compile($this->matches[5]);
then it renders the first 2 levels and ingores the third one.