         if let representation = implicitRepresentation(for: element, inheriting: childAttributes) {
             content.append(representation)
         } else {
-            if let imgElement = linkedImageElement(for: element) {
-                let linkText = element.stringValueForAttribute(named: "href") ?? ""
-                let imgAttributes = self.attributes(for: imgElement, inheriting: attributes)
-                let attachment = imgAttributes[NSAttachmentAttributeName] as! ImageAttachment
-                let attributedString = implicitRepresentation(for: imgElement, inheriting: imgAttributes)!
-                attachment.linkURL = URL(string: linkText)
-                content.append(attributedString)
-            } else {
-                for child in element.children {
-                    let childContent = serialize(child, inheriting: childAttributes)
-                    content.append(childContent)
-                }
+            for child in element.children {
+                let childContent = serialize(child, inheriting: childAttributes)
+                content.append(childContent)
             }
         }
 

            return nil
        }
    }

}

        }

        return content
    }

    /// Serializes an unsupported element.
