Skip to content

Commit

Permalink
refine mathjax highlight rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Apr 25, 2012
1 parent d1201fb commit 496cc39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gwt/acesupport/acemode/markdown_highlight_rules.js
Expand Up @@ -78,10 +78,7 @@ var MarkdownHighlightRules = function() {
}, { // HR _
token : "constant",
regex : "^[ ]{0,2}(?:[ ]?\\_[ ]?){3,}\\s*$"
}, { // MathJax inline $$
token : "support.function",
regex : "\\${2}[^\\r]+\\${2}"
}, { // MathJax block $$
}, { // MathJax $$
token : "support.function",
regex : "\\${2}",
next : "mathjax"
Expand Down Expand Up @@ -135,6 +132,10 @@ var MarkdownHighlightRules = function() {
} ],

"mathjax" : [ {
token : "support.function",
regex : "[^\\r]+\\${2}",
next : "start"
}, {
token : "support.function",
regex : "\\${2}",
next : "start"
Expand Down

0 comments on commit 496cc39

Please sign in to comment.