Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

$x_y$ should not make the rest of the line italic #4

Open
cben opened this issue Jul 27, 2013 · 1 comment
Open

$x_y$ should not make the rest of the line italic #4

cben opened this issue Jul 27, 2013 · 1 comment
Labels

Comments

@cben
Copy link
Owner

cben commented Jul 27, 2013

Needs changes in CM's markdown mode:

  1. Recognize $...$ and don't parse stuff like _ and * inside it. (a-la backticks ...)
  2. Adopt pandoc-like rule where _ and * inside a word don't count.
    Not a full solution but helpful in any case.
cben added a commit that referenced this issue Aug 7, 2013
Mildly improves #4.  Still broken for x_{y} and x*y.
cben added a commit that referenced this issue Nov 22, 2013
cben added a commit that referenced this issue Nov 22, 2013
Using multiplexingMode => imperfect in various ways.
Breaks #12 entirely — all math now styled as .cm-keyword, no way to access surrounding style.

The good news is that it's optional - you call defineMathMode() and use the resulting mode (see demo).
This interface is likely to change.
@cben
Copy link
Owner Author

cben commented May 14, 2015

Another side effect of this problem: $a<b$ breaks syntax highlight of everything after that because markdown mode treats it as start of <b ...> tag and switches to html parser.
Workaround: $a < b$ (with space after <) works fine.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant