Source

TracMathJaxPlugin / tracmathjax / tracmathjax.py

Diff from to

File tracmathjax/tracmathjax.py

     def get_wiki_syntax(self):
         # Capture text in between MathJax delimiters to keep other wiki syntax
         # from being applied.
-        yield (r"(?P<mathjax_inline>\\(.*\\)|\$\$.*\$\$)", self._render_inline)
+        yield (r"(?P<mathjax_inline>\\(.*?\\)|\$\$.*?\$\$)", self._render_inline)
 
     def get_link_resolvers(self):
         # we have no link resolvers