Access section context within shortcode

Hi, I’m trying to iterate through the pages within my section, but to do it within my section’s I’m trying to use a shortcode for this, but it seems that the section context within the shortcode is not available.

When I debug with __tera_context I see some information from the section, but the pages variable is always an empty array. This isn’t the case if I debug the same way with the template.

I also tried to pass the section context as an argument to the short code, but it seems like there’s no section context at all within the markdown?

Is the only way to access a section’s context within the template itself?

Rendering of markdown is done before populating the sections so that won’t be possible