In Markdown syntax to put multi-line code you need to use three backticks around:
I played around with this a bit. It works for a one-liner. If I break the line it is still a one-liner. If I break the line twice (double-line-break), it does not work anymore. I need something where I can just put my code and have line breaks and indents with spaces preserved and not interpreted anything.