Chatted with Licat about the issue on Discord.
He and I experimented a bit. The code block in a callout worked until I put HTML markup in it. (And it did render correctly in the Reading view.)
He suggested creating a bug report.
But, I’m happy to create a feature request, if that is the best way to handle it.