getgrav / getgrav/grav-plugin-shortcode-core

Nested shortcodes broken in flex objects content

Open
#114 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
47
Forks
17
PR merge metrics
No merged PRs in 30d

Description

My setup renders flex objects that have markdown content. The template looks like this
```twig
{{ object.markdown|shortcodes|markdown|raw }}
```
The following markdown
```markdown
[div]
[div]
*test*
[/div]
[/div]
```
renders like this:
```html



*test*

[/div]
```
Using the same markdown in the page content (not the flex object) it produces the correct/expected output:
```html


test




```
The parser is set to `regular` like suggested here: https://github.com/getgrav/grav-plugin-shortcode-core/issues/67#issuecomment-506149407

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.