Could the ``` be <pre> instead? I've moved to using <pre> blocks for larger blocks of code or commands. In the 2 Markdown editors I use on my machine, code in ``` blocks gets rendered as a single line. I also try to avoid using GFM-specific features.