             return nil
         }
     }
+    
+    /// 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
+    ///
+    private 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
+    }
 
 }

        }

        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.

        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)
            }
        }

