You did not mention what version of hugo you are currently using but I’m certain this might solve your issue: Goldmark breaks shortcode
You did not mention what version of hugo you are currently using but I’m certain this might solve your issue: Goldmark breaks shortcode