I use an “img” shortcode which has a caption parameter. I want be able to use shortcodes within this caption text, i.e.
{{% img src="img.png" width="500px" caption="Caption with equation {{% math %}}y=x^2{{% /math %}}." %}}
Is there a solution to this? In my local testing hugo just treats the entire caption as text. I think I could make the caption the inner content of the shortcode, and then it perhaps would work. But that is not scalable, i.e. if I has two parameters I wanted to pass content with shortcodes in, I would be stuck again.