Goldmark codefences results in pre+code

No, there is not.

But have a look at this:
https://discourse.gohugo.io/t/use-mermaid-with-code-fences/17211