diff --git a/CHANGES b/CHANGES index 7472232da..58431cee8 100644 --- a/CHANGES +++ b/CHANGES @@ -29,7 +29,7 @@ Bugs fixed * #5280: autodoc: Fix wrong type annotations for complex typing * autodoc: Optional types are wrongly rendered * #5291: autodoc crashed by ForwardRef types - +* #5298: imgmath: math_number_all causes equations to have two numbers in html Testing -------- diff --git a/sphinx/ext/imgmath.py b/sphinx/ext/imgmath.py index 5f9d7a1e2..cfec4db28 100644 --- a/sphinx/ext/imgmath.py +++ b/sphinx/ext/imgmath.py @@ -319,8 +319,7 @@ def html_visit_displaymath(self, node): if node['nowrap']: latex = node['latex'] else: - latex = wrap_displaymath(node['latex'], None, - self.builder.config.math_number_all) + latex = wrap_displaymath(node['latex'], None, False) try: fname, depth = render_math(self, latex) except MathExtError as exc: