Forgot to gate pushImg (#27212)

`pushImg` should have been gated by enableFloat

Added in #27191
This commit is contained in:
Josh Story
2023-08-10 16:42:40 -07:00
committed by GitHub
parent f359f9b41a
commit 533fc28c1b
@@ -3245,7 +3245,9 @@ export function pushStartInstance(
return pushStartPreformattedElement(target, props, type);
}
case 'img': {
return pushImg(target, props, resources);
return enableFloat
? pushImg(target, props, resources)
: pushSelfClosing(target, props, type);
}
// Omitted close tags
case 'base':