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

Closed
astrofrog opened this Issue Jan 17, 2013 · 3 comments

Projects

None yet

4 participants

@astrofrog
Contributor

The attached screenshot demonstrates a bug that occurs with the syntax highlighting:

Screen shot 2013-01-17 at 12 25 50

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)

@Carreau
Member
Carreau 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 !

@minrk
Member
minrk 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.

@jdfreder
Member
jdfreder commented Apr 4, 2014

#5479 should address this

@minrk minrk modified the milestone: 3.0, wishlist May 8, 2014
@ellisonbg ellisonbg closed this in #5479 Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment