diff --git a/sphinx/util/images.py b/sphinx/util/images.py index 2d228e66d..eba295a3c 100644 --- a/sphinx/util/images.py +++ b/sphinx/util/images.py @@ -120,3 +120,17 @@ def parse_data_uri(uri): image_data = base64.b64decode(data) return DataURI(mimetype, charset, image_data) + + +def test_svg(h, f): + """An additional imghdr library helper; test the header is SVG's or not.""" + try: + if '