Turns out this had been broken since Hugo 0.55, and I never worked out why... https://gohugo.io/content-management/shortcodes/#shortcodes-with-markdown