Pandoc markdown supports 'raw' blocks like this:
```{=latex}
LaTeX code here
```
This is not picked up by polymode-markdown (whereas ```{latex} is). I expect this can be fixed in the regex for the head matcher, but I'm afraid my elisp-fu wasn't up to this.