@@ -473,6 +473,8 @@ flatten outer
473473 -- them and they will be readable and parsable
474474 (Quoted _ _, _) -> keep f i
475475 (_, Quoted _ _) -> keep f i
476+ -- inlineToRST handles this case properly so it's safe to keep
477+ (Link _ _ _, Image _ _ _) -> keep f i
476478 -- parent inlines would prevent links from being correctly
477479 -- parsed, in this case we prioritise the content over the
478480 -- style