Laravel-Shortcodes icon indicating copy to clipboard operation
Laravel-Shortcodes copied to clipboard

Nesting more than 2 levels deep

Open basdog22 opened this issue 9 years ago • 0 comments

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.

basdog22 avatar May 17 '15 09:05 basdog22