summaryrefslogtreecommitdiff
path: root/sphinx/ext/jsmath.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-04-18 11:35:10 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-04-18 11:35:10 +0900
commit96c5605374135652cf7ec0ad517b532b9261ef19 (patch)
tree7eb53e2d5997bccfc36c61db9af7dc1fd934104d /sphinx/ext/jsmath.py
parentb5ddc8c6977ac964e3ba4a2eb4647decdc742f4f (diff)
parentadf5e9fda646cd93842a04fb6be730ea5f3193a2 (diff)
downloadsphinx-git-96c5605374135652cf7ec0ad517b532b9261ef19.tar.gz
Merge branch '1.7'
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r--sphinx/ext/jsmath.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py
index b377a6479..9e8662b03 100644
--- a/sphinx/ext/jsmath.py
+++ b/sphinx/ext/jsmath.py
@@ -26,7 +26,7 @@ if False:
def html_visit_math(self, node):
# type: (nodes.NodeVisitor, nodes.Node) -> None
- self.body.append(self.starttag(node, 'span', '', CLASS='math notranslate'))
+ self.body.append(self.starttag(node, 'span', '', CLASS='math notranslate nohighlight'))
self.body.append(self.encode(node['latex']) + '</span>')
raise nodes.SkipNode
@@ -34,7 +34,7 @@ def html_visit_math(self, node):
def html_visit_displaymath(self, node):
# type: (nodes.NodeVisitor, nodes.Node) -> None
if node['nowrap']:
- self.body.append(self.starttag(node, 'div', CLASS='math notranslate'))
+ self.body.append(self.starttag(node, 'div', CLASS='math notranslate nohighlight'))
self.body.append(self.encode(node['latex']))
self.body.append('</div>')
raise nodes.SkipNode
@@ -47,7 +47,7 @@ def html_visit_displaymath(self, node):
self.body.append('<span class="eqno">(%s)' % number)
self.add_permalink_ref(node, _('Permalink to this equation'))
self.body.append('</span>')
- self.body.append(self.starttag(node, 'div', CLASS='math notranslate'))
+ self.body.append(self.starttag(node, 'div', CLASS='math notranslate nohighlight'))
else:
# but only once!
self.body.append('<div class="math">')