summaryrefslogtreecommitdiff
path: root/sphinx/domains/math.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/domains/math.py')
-rw-r--r--sphinx/domains/math.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/math.py b/sphinx/domains/math.py
index ebc4da371..78b7784a7 100644
--- a/sphinx/domains/math.py
+++ b/sphinx/domains/math.py
@@ -78,7 +78,7 @@ class MathDomain(Domain):
def math_node(node: Node) -> bool:
return isinstance(node, (nodes.math, nodes.math_block))
- self.data['has_equations'][docname] = any(document.traverse(math_node))
+ self.data['has_equations'][docname] = any(document.findall(math_node))
def clear_doc(self, docname: str) -> None:
for equation_id, (doc, eqno) in list(self.equations.items()):