diff --git a/otc_doc_convertor/convertor.py b/otc_doc_convertor/convertor.py index 8be286906..673dddea1 100644 --- a/otc_doc_convertor/convertor.py +++ b/otc_doc_convertor/convertor.py @@ -142,6 +142,10 @@ class OTCDocConvertor: # Store all referred images for copying self.doc_images.add(img['src']) img['src'] = '/_static/images/' + img['src'] + if "width" in img: + del img["width"] + if "height" in img: + del img["height"] figure.append(img) i.replace_with(figure) elif "section" in i.get('class', []):