# Bug with syntax highlighting in Markdown edit mode when using Latex and < symbol #2798

Closed
opened this Issue Jan 17, 2013 · 3 comments

None yet

### 4 participants

Contributor
 The attached screenshot demonstrates a bug that occurs with the syntax highlighting: Here is the original cell text to reproduce the issue: Given a photon with wavelength $\lambda_1$ incoming from the left, and an electron moving with a velocity $v_{e,1}$ (where $v_{e,1}>0$ indicates that the electron is moving to the right, and $v_{e,1}<0$ indicates that the electron is moving to the left), we want to find the new wavelength of the scattered photon, assuming it gets scattered back by $180^\circ$. We look at an example where $\lambda_1=0.1$nm and $v_{e,1}=10^6$m/s. (edit: I'm using ipython 0.13.1)
Member
commented Jan 17, 2013
 This is probably because we use CodeMirror Markdown highlighting mode with feature that are not supported (tex embeding). While waiting for a fix, if the coloration annoy you you can use \lt (lower than) which seem to work. Thanks !
Member
commented Jan 18, 2013
 I'm not sure this is fixable, unless we want to write a whole Markdown + MathJax highlighter for CM, which I don't think is likely. Marking as wishlist.
This was referenced Jan 19, 2013
Closed

Closed

Merged

#### Mixed gfm/latex parsing in codemirror #5479

Member
commented Apr 4, 2014