diff --git a/sphinx/writers/html5.py b/sphinx/writers/html5.py index 90eedd8d71d..c1a4382d9fb 100644 --- a/sphinx/writers/html5.py +++ b/sphinx/writers/html5.py @@ -694,24 +694,6 @@ def visit_image(self, node: Element) -> None: if 'height' not in node: node['height'] = str(size[1]) - uri = node['uri'] - if uri.lower().endswith(('svg', 'svgz')): - atts = {'src': uri} - if 'width' in node: - atts['width'] = node['width'] - if 'height' in node: - atts['height'] = node['height'] - if 'scale' in node: - if 'width' in atts: - atts['width'] = multiply_length(atts['width'], node['scale']) - if 'height' in atts: - atts['height'] = multiply_length(atts['height'], node['scale']) - atts['alt'] = node.get('alt', uri) - if 'align' in node: - atts['class'] = 'align-%s' % node['align'] - self.body.append(self.emptytag(node, 'img', '', **atts)) - return - super().visit_image(node) # overwritten