sounds like a bug in load_data, should probably be reported. Or perhaps it is a bug in the markdown rendering. What happens if you just manually paste the code in that triple quote block, does it still omit the newlines?
I don’t think it’s the Markdown rendering, if I paste my code into the code fences it displays correctly with all the empty lines preserved.
Actually after playing around with it a bit more, the newlines are in fact preserved by load_data, but somehow the Markdown renderer doesn’t pick them up properly.