HUGO

How to render markdown in nested shortcodes?

What I’m trying to achieve

I want to have a list where each item will have different markdown:

markdown-content.md:

{{< parent >}}
  {{< child>}}
    # Should be rendered as header
  {{< child>}}
{{</ parent >}}

What’s not working

I’ve tried this and some variations of it. I can’t get list items to be rendered as markdown.

parent.html: {{ .Inner }}

child.html:

{{ $_hugo_config := `{ "version": 1 }` }}
{{ .Inner | markdownify }}