Mixed gfm/latex parsing in codemirror

Adds support for latex syntax highlighting within markdown cells.

Closes #5135
Closes #2798