         }
 
         return content
-    }
-    
-    /// Checks if the specified node is of type '.a' with one child '.img' node.
-    /// If true, returns the '.img' node.
-    ///
-    /// - Parameters:
-    ///     - element: the node to get the information from
-    ///
-    /// - Returns: the child '.img' node if there is one
-    ///
-    fileprivate func linkedImageElement(for element: ElementNode) -> ElementNode? {
-        guard element.isNodeType(.a) && element.children.count == 1,
-            let imgElement = element.children.first as? ElementNode,
-            imgElement.isNodeType(.img) else {
-                return nil
-        }
-
-        return imgElement
     }
 
     /// Serializes an unsupported element.

        guard let elementType = element.standardName else {
            return nil
        }

        return implicitRepresentation(for: elementType, inheriting: attributes)
    }

        if let representation = implicitRepresentation(for: element, inheriting: childAttributes) {
            content.append(representation)
        } else {
            for child in element.children {
                let childContent = serialize(child, inheriting: childAttributes)
                content.append(childContent)
            }
        }

