mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Skip "data:" URIs in ImageConverter
This commit is contained in:
parent
8ba20898b4
commit
a73df1e0f2
@ -200,6 +200,9 @@ class ImageConverter(BaseImageConverter):
|
||||
elif set(self.guess_mimetypes(node)) & set(self.app.builder.supported_image_types):
|
||||
# builder supports the image; no need to convert
|
||||
return False
|
||||
elif node['uri'].startswith('data:'):
|
||||
# all data URI MIME types are assumed to be supported
|
||||
return False
|
||||
elif self.available is None:
|
||||
# store the value to the class variable to share it during the build
|
||||
self.__class__.available = self.is_available()
|
||||
|
Loading…
Reference in New Issue
Block a user