summaryrefslogtreecommitdiff
path: root/sphinx/ext/mathjax.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext/mathjax.py')
-rw-r--r--sphinx/ext/mathjax.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py
index 26d1e2aa1..e967cd75e 100644
--- a/sphinx/ext/mathjax.py
+++ b/sphinx/ext/mathjax.py
@@ -25,6 +25,7 @@ def html_visit_math(self, node):
self.builder.config.mathjax_inline[1] + '</span>')
raise nodes.SkipNode
+
def html_visit_displaymath(self, node):
self.body.append(self.starttag(node, 'div', CLASS='math'))
if node['nowrap']:
@@ -52,6 +53,7 @@ def html_visit_displaymath(self, node):
self.body.append('</div>\n')
raise nodes.SkipNode
+
def builder_inited(app):
if not app.config.mathjax_path:
raise ExtensionError('mathjax_path config value must be set for the '