Skip to content

Commit

Permalink
Merge pull request #5304 from tk0miya/5298_imgmath_two_numbers
Browse files Browse the repository at this point in the history
Fix #5298: imgmath: math_number_all causes equations to have two numbers in html
  • Loading branch information
tk0miya committed Aug 16, 2018
2 parents 01f4d3b + 4b3fc81 commit b926ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Expand Up @@ -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
--------
Expand Down
3 changes: 1 addition & 2 deletions sphinx/ext/imgmath.py
Expand Up @@ -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:
Expand Down

0 comments on commit b926ee8

Please sign in to comment.