Nested shortcodes broken in flex objects content
My setup renders flex objects that have markdown content. The template looks like this
{{ object.markdown|shortcodes|markdown|raw }}
The following markdown
[div]
[div]
*test*
[/div]
[/div]
renders like this:
<div>
<div></div>
*test*
</div>
[/div]
Using the same markdown in the page content (not the flex object) it produces the correct/expected output:
<div >
<div >
<p><em>test</em></p>
</div>
</div>
The parser is set to regular like suggested here: https://github.com/getgrav/grav-plugin-shortcode-core/issues/67#issuecomment-506149407
@schliflo dont need |raw anymore with |markdown
does this work
{% set md = object.markdown|shortcodes|markdown %}
{{ md|markdown }}
does this work
{% set md = object.markdown|shortcodes|markdown %} {{ md|markdown }}
Unfortunately this does not work. I think the shortcode handling gets messed up before that. The rendered result still lokks like in the example above. It has a stray closing shortcode tag and the div is closed too early as well.
Change the parser to regular.
Change the parser to regular.
The parser is already set to regular, thats the strange thing. It works fine when using the exact same nested shorcode in the page content, just the flex content is bahiving this way