This question asks exactly what I want to do, but I’m misunderstanding the solution presented by @bep.
In my case, I want to use the built-in “figure” shortcode, and set the named parameter “src” to a front matter variable, like:
---
mysrc: theimage.jpg
---
{{< figure src="{{< param mysrc >}}" >}}
I’ve attempted quite a few syntax variations, so I think I must e going about it the wrong way. I considered nested shortcodes, but can’t envision that with named parameters.
Thank you