{{< card >}}
title: Heading and body
body:
Content of the third card.
{{< badge primary >}}Sample badge{{< /badge >}}
{{< /card >}}
We unmarshal this in the card shortcode, using transform.Unmarshal. That fails, stating:
error calling Unmarshal: “_stream.yaml:17:1”: failed to unmarshal YAML: yaml: line 17: could not find expected ‘:’
Are we incorrect in expecting that JSON string to come back unprocessed? Even if the shortcode is evaluated first (which it shouldn’t be), the result is valid YAML. So any idea what might be going wrong?
That looks really fragile to me. I’m not sure what you’re doing, and I really don’t want to know, but you might step back for a minute or two… maybe there’s a more solid way of doing what you want.