mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7643 from tk0miya/7628_imgconverter_unnecessary
Fix #7628: imgconverter: runs imagemagick unnecessary
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -93,6 +93,8 @@ Bugs fixed
|
||||
* #7536: sphinx-autogen: crashes when template uses i18n feature
|
||||
* #2785: html: Bad alignment of equation links
|
||||
* #7581: napoleon: bad parsing of inline code in attribute docstrings
|
||||
* #7628: imgconverter: runs imagemagick once unnecessary for builders not
|
||||
supporting images
|
||||
* #7610: incorrectly renders consecutive backslashes for docutils-0.16
|
||||
|
||||
Testing
|
||||
|
||||
@@ -193,7 +193,9 @@ class ImageConverter(BaseImageConverter):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def match(self, node: nodes.image) -> bool:
|
||||
if self.available is None:
|
||||
if not self.app.builder.supported_image_types:
|
||||
return False
|
||||
elif self.available is None:
|
||||
self.available = self.is_available()
|
||||
|
||||
if not self.available:
|
||||
|
||||
Reference in New Issue
Block a user