Merge pull request #5304 from tk0miya/5298_imgmath_two_numbers

Fix #5298: imgmath: math_number_all causes equations to have two numbers in html
This commit is contained in:
Takeshi KOMIYA 2018-08-17 00:45:18 +09:00 committed by GitHub
commit b926ee8aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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
--------

View File

@ -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: