                     }
                 }
             }
-            return NSAttributedString(attachment: attachment)
-        case .br:
-            return NSAttributedString(string: "\n", attributes: attributes)
-        case .p:
-            resultString.appendAttributedString(NSAttributedString(string: "\n", attributes: attributes))
-        case .li:
-            resultString.appendAttributedString(NSAttributedString(string: "\n", attributes: attributes))
-        default:
-            return resultString
-        }
-        return resultString
-
-    }
-
-    // MARK: - String attributes
-
-    /// Calculates the attributes for the specified node.  Returns a dictionary including inherited
-    /// attributes.
-    ///
-    /// - Parameters:
-    ///     - node: the node to get the information from.
-    ///
-    /// - Returns: an attributes dictionary, for use in an NSAttributedString.
-    ///
-    private func attributes(forNode node: ElementNode, inheritingAttributes inheritedAttributes: [String:AnyObject]) -> [String:AnyObject] {
-
-        var attributes = inheritedAttributes
-
-        // Since a default font is requested by this class, there's no way this attribute should
-        // ever be unset.
-        //
-        precondition(inheritedAttributes[NSFontAttributeName] is UIFont)
-        let baseFont = inheritedAttributes[NSFontAttributeName] as! UIFont
-        let baseFontDescriptor = baseFont.fontDescriptor()
-        let descriptor = fontDescriptor(forNode: node, withBaseFontDescriptor: baseFontDescriptor)
-
-        if descriptor != baseFontDescriptor {
-            attributes[NSFontAttributeName] = UIFont(descriptor: descriptor, size: descriptor.pointSize)
-        }
-
-        if isLink(node) {
-            let linkURL: String
-
-            if let attributeIndex = node.attributes.indexOf({ $0.name == HTMLLinkAttribute.Href.rawValue }),
-                let attribute = node.attributes[attributeIndex] as? StringAttribute {
-
-                linkURL = attribute.value
-            } else {
-                // We got a link tag without an HREF attribute
-                //
-                linkURL = ""
-            }
-
-            attributes[NSLinkAttributeName] = linkURL
-        }
-
-        if isStrikedThrough(node) {
-            attributes[NSStrikethroughStyleAttributeName] = NSUnderlineStyle.StyleSingle.rawValue
-        }
-
-        if isUnderlined(node) {
-            attributes[NSUnderlineStyleAttributeName] = NSUnderlineStyle.StyleSingle.rawValue
-        }
-
-
-        if isBlockquote(node) {
-            let formatter = BlockquoteFormatter()
-            for (key, value) in formatter.attributes {
-                attributes[key] = value
-            }
+            attributes[NSAttachmentAttributeName] = attachment
         }
 
         return attributes

        let resultString = NSMutableAttributedString(attributedString: childContent)
        switch nodeType {
        case .img:
            let url: NSURL?

            if let urlString = node.valueForStringAttribute(named: "src") {

    private func isBlockquote(node: ElementNode) -> Bool {
        return node.name == StandardElementType.blockquote.rawValue
    }

    private func isImage(node: ElementNode) -> Bool {
        return node.name == StandardElementType.img.rawValue
    }
}
