We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5404439 commit b88f6ecCopy full SHA for b88f6ec
src/remark-image-resize.js
@@ -38,10 +38,7 @@ export default function remarkImageResize() {
38
name: 'alt',
39
value: cleanedAlt,
40
};
41
- // remove any pre-existing width/height attributes to avoid duplicates
42
- node.attributes = node.attributes.filter(
43
- a => !(a && (a.name === 'width' || a.name === 'height'))
44
- );
+
45
if (wStr)
46
node.attributes.push({type: 'mdxJsxAttribute', name: 'width', value: wStr});
47
if (hStr)
0 commit comments