summaryrefslogtreecommitdiff
path: root/sphinx/ext/jsmath.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-03-02 22:52:39 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-05-17 00:42:22 +0900
commite675ad2ec91407d516a51304f6bd7fd683f2371c (patch)
treed33c289de66b22d0e9c5ea133afc3b15e8f91712 /sphinx/ext/jsmath.py
parent4e04bff4f50bc382251437d5faafff9c34c492cb (diff)
downloadsphinx-git-e675ad2ec91407d516a51304f6bd7fd683f2371c.tar.gz
Enable math_block node rendering by default (without HTML builders)
Diffstat (limited to 'sphinx/ext/jsmath.py')
-rw-r--r--sphinx/ext/jsmath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/jsmath.py b/sphinx/ext/jsmath.py
index fa9eb7913..7381da42b 100644
--- a/sphinx/ext/jsmath.py
+++ b/sphinx/ext/jsmath.py
@@ -35,10 +35,10 @@ 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 nohighlight'))
- self.body.append(self.encode(node['latex']))
+ self.body.append(self.encode(node.astext()))
self.body.append('</div>')
raise nodes.SkipNode
- for i, part in enumerate(node['latex'].split('\n\n')):
+ for i, part in enumerate(node.astext().split('\n\n')):
part = self.encode(part)
if i == 0:
# necessary to e.g. set the id property correctly