I cannot come up with a clean way to accomplish this, and the ugly way is very ugly.
If #7297 were implemented, you could do this in layouts/_default/single.md:
{{ .RawContent | .RenderShortcodes }}
Another approach would require the .RenderString
method to accept “HTML” as a markup parameter, but this currently throws an error:
{{ .RawContent | .RenderString (dict "markup" "HTML") }}
Related: