Pandoc allows markdown, including code blocks, inside of grid tables. This is very frequently useful. However, the current implementation zaps all white space at the beginning of cells, ruining code indentation/formatting.
I've submitted a pull request with a fix.