Hugo-defined summary limitation not solved by user-defined split

Short content followed by a code block results in Hugo-defined summary splitting including the code block. Ideally, Hugo can be configured to not include anything from a code block. Is this possible?

I tried to use the user-defined split (), but, unfortunately in this mode Hugo wraps the summary in

. Is there a way to disable that wrapping?

Probably related to this open issue: