According to http://daringfireball.net/projects/markdown/syntax, a code block ends when it encounters a line with no leading whitespace. As you can see below, github is clumping consecutive code blocks together when separated by a blank line with no leading space.
Some code. There should be a separation between this line and the other code block below.
Some code. The blank line above has no leading space in the editor.