mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
commit
b926ee8aeb
2
CHANGES
2
CHANGES
@ -29,7 +29,7 @@ Bugs fixed
|
|||||||
* #5280: autodoc: Fix wrong type annotations for complex typing
|
* #5280: autodoc: Fix wrong type annotations for complex typing
|
||||||
* autodoc: Optional types are wrongly rendered
|
* autodoc: Optional types are wrongly rendered
|
||||||
* #5291: autodoc crashed by ForwardRef types
|
* #5291: autodoc crashed by ForwardRef types
|
||||||
|
* #5298: imgmath: math_number_all causes equations to have two numbers in html
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -319,8 +319,7 @@ def html_visit_displaymath(self, node):
|
|||||||
if node['nowrap']:
|
if node['nowrap']:
|
||||||
latex = node['latex']
|
latex = node['latex']
|
||||||
else:
|
else:
|
||||||
latex = wrap_displaymath(node['latex'], None,
|
latex = wrap_displaymath(node['latex'], None, False)
|
||||||
self.builder.config.math_number_all)
|
|
||||||
try:
|
try:
|
||||||
fname, depth = render_math(self, latex)
|
fname, depth = render_math(self, latex)
|
||||||
except MathExtError as exc:
|
except MathExtError as exc:
|
||||||
|
Loading…
Reference in New Issue
Block a user