stianjensen/wikipendium.no — pull request #287 by stianjensen (2014-05-30 11:34:57+00:00)
Title: Fix syntax highlighting issues in codemirror

This updates codemirror to the latest version and closes #230

It will also properly respect escaped dollar signs.

It takes advantage of the more appropriate multiplexing mode in
codemirror. This means that while in math mode the markdown parser will
ignore all characters. With the overlay mode we're currently using, a
"_" or "*" character inside math will cause the markdown syntax
highlighting to activate italic text. Multiplexing resolves this issue.

Finally, it introduces highlighting of latex/math, so it's easier to
spot syntax issues here as well, and less green overall.

![screenshot 2014-05-30 13 33 32](https://cloud.githubusercontent.com/assets/1413267/3129961/62524892-e7ee-11e3-8701-fc6e3ff64ba4.png)
![screenshot 2014-05-30 13 33 44](https://cloud.githubusercontent.com/assets/1413267/3129960/6251f932-e7ee-11e3-9952-2cb329214369.png)